{
  "openapi": "3.1.0",
  "info": {
    "title": "Plumbline",
    "version": "1",
    "description": "Plumbline: Counterparty checks for procurement, compliance and credit teams checking a company: its registrations, sanctions exposure, filings and federal contracts. Know who you are dealing with. Plumbline screens a person or company name against the US Treasury OFAC SDN list and its aliases in seconds, returning each match with its score, entry number and programs and the list's publication date; a match is a lead for review, not a determination. Its company checks (LEI and SEC registration, SEC-reported XBRL figures and federal contract awards) answer from the public registries where they are running, and every answer names the record it came from.",
    "x-commercial": {
      "business": "Plumbline",
      "price_basis": [
        {
          "kind": "VERIFIED_PRICE",
          "label": "Price",
          "badge": "Price",
          "applies_to": "Supplier verification report",
          "statement": "$5 for the first company and $1 for each further one in the same order, up to 25. Ordering is open: a request with your company list receives its firm offer at this price on its own page, and the report follows once payment is confirmed.",
          "status": "ORDERABLE_NOW",
          "price": {
            "offering": "plumbline-supplier-verification",
            "first_unit_minor": 500,
            "additional_unit_minor": 100,
            "currency": "USD",
            "unit": "company",
            "max_units": 25
          },
          "ordering": "OPEN",
          "included": [
            "a report on each company you name: its LEI and SEC registration records, with sources, the date each was read and any shortfall stated"
          ],
          "not_included": [
            "beneficial ownership, credit, litigation and sanctions status",
            "companies that hold no LEI and file nothing with the SEC, which are reported as not found"
          ],
          "validity": "The price stated now. A firm offer states the same figure and its own validity before anything is paid.",
          "acceptable": false
        },
        {
          "kind": "PRICING_METHOD",
          "label": "How the price is worked out",
          "badge": "How it is priced",
          "applies_to": "Lookups (sanctions, reported financials, federal awards, entity records)",
          "statement": "The price is determined by which lookup it is: the sanctions screen, reported financials and federal awards are free within a daily allowance; the entity lookup is paid per call over x402, and runs only where this deployment takes that payment (its page says whether it does).",
          "status": "NO_FIGURE",
          "method": {
            "determined_by": [
              "which lookup it is: the sanctions screen, reported financials and federal awards are free within a daily allowance",
              "the entity lookup is paid per call over x402, and runs only where this deployment takes that payment (its page says whether it does)"
            ],
            "inputs_needed": []
          },
          "included": [],
          "not_included": [],
          "validity": "Until a firm offer is made; an offer states its own validity.",
          "acceptable": false
        }
      ],
      "governing": "Only a firm offer binds: it states the exact price, what is included, its validity and its terms, and nothing is ordered until you accept it.",
      "price_classes": [
        {
          "class": "Indicative price",
          "means": "this business's own price for the work as it is recorded, with exactly what it is per. It is not an offer, it cannot be accepted or ordered from a page, and the exact price for your job is stated only in a firm offer."
        },
        {
          "class": "Published reference price",
          "means": "a named provider's own public price, with where and when it was read and what it covers. It is that provider's price if you buy from it directly, and it invoices you on its own terms. It is not this business's price."
        },
        {
          "class": "Indicative estimate",
          "means": "a range derived from published prices, with its assumptions and conditions. It is not an offer and cannot be accepted."
        },
        {
          "class": "Supplier quotation",
          "means": "a price a provider quoted, shown only where that provider publishes the same price itself."
        },
        {
          "class": "Firm offer",
          "means": "the only binding price: made after a request, with exact terms, valid for the period it states, and nothing is ordered until you accept it."
        }
      ],
      "response": {
        "statement": "A request is recorded and given a reference at once. Plumbline's systems collect new requests about every 10 minutes, at any hour, and a first reply is drafted on a pass that runs every 15 minutes. A reply that passes its checks is sent without waiting for a person. One that does not, or a request that cannot be placed, waits for a person, and a request still unanswered after an hour is listed for the operators. A request that left no address is answered on its own page where that is possible; an address is the surer way to hear back. No reply time is promised: none has been measured for this business yet. Your request's own page shows when it was received and, after 2 business days with no reply there, says so plainly.",
        "collected_every_minutes": 10,
        "drafted_every_minutes": 15,
        "operators_listed_after_minutes": 60,
        "review_after_business_days": 2,
        "reply_time_promised": false,
        "measured": null,
        "reported_in": "request_status.response"
      },
      "responsibility": {
        "arrangement": "PERFORMS_ITSELF",
        "seller_of_record": "Tempered Technologies LLC",
        "contract_with": "Tempered Technologies LLC, the operator of Plumbline: the seller named on the offer you accept.",
        "performed_by": "Plumbline's own systems, reading public registries and filings.",
        "business_does": "Runs the lookups and produces the report itself, from the sources each answer names.",
        "delivery": "Tempered Technologies LLC, as the seller: its own systems produce what the offer lists.",
        "invoiced_by": "Tempered Technologies LLC, through its payment processor, for what the offer lists, at the stage the offer states: payment at acceptance by card, a deposit at acceptance and the balance once the condition the offer names is met, or an invoice on acceptance, shipment or delivery.",
        "before_acceptance": "Sending a request orders nothing, reserves nothing and costs nothing. A reply, a figure in a reply, an estimate and a proposal are not offers. You are committed only when you accept a firm offer's exact terms.",
        "licence_limits": [
          "A sanctions match is a lead to review, not a compliance determination: a reviewer must confirm or dismiss it."
        ],
        "remedies": [
          "Before you accept: you can decline an offer, or propose other quantities, dates, a total or a payment plan. A proposal changes nothing until a revised offer is issued, and the offer as it stands can still be accepted.",
          "An order that depends on a supplier carries this term in the offer you accept: \"If we cannot fulfill on these terms, we will cancel and refund the full amount owed to you.\"",
          "After delivery: you can record what you accept and what you reject, item by item. A rejection is answered with a proposed remedy (rework, a replacement, a credit, a refund or a revised delivery) that you accept or decline."
        ],
        "cancellation": "There is no standing cancellation policy across orders: whether and how an accepted order can be cancelled is written in that offer's own terms, which you read before accepting."
      },
      "offer_validity_days": 14
    }
  },
  "servers": [
    {
      "url": "https://plumbline.forevenza.com"
    }
  ],
  "tags": [
    {
      "name": "Plumbline",
      "description": "Plumbline screens a person or company name against the US Treasury OFAC SDN list and its aliases in seconds, returning each match with its score, entry number and programs and the list's publication date; a match is a lead for review, not a determination. Its company checks (LEI and SEC registration, SEC-reported XBRL figures and federal contract awards) answer from the public registries where they are running, and every answer names the record it came from."
    }
  ],
  "paths": {
    "/sanctions-screening/requests": {
      "post": {
        "operationId": "sanctions_screening_request",
        "summary": "Send a requirement: Screen a name against the OFAC SDN list",
        "description": "Plumbline. The name is normalized and compared with the copy of the SDN list (primary names and aliases) that this service refreshes daily from OFAC. The answer lists matches above the similarity floor with their score, OFAC entry number, type and programs, and the publication the copy came from. A match is a lead to review, not a determination.",
        "tags": [
          "Plumbline"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "need"
                ],
                "properties": {
                  "continuation": {
                    "type": "object",
                    "required": [
                      "id",
                      "token"
                    ],
                    "description": "Optional receipt credentials to continue an existing requirement with this business",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "token": {
                        "type": "string"
                      }
                    }
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "buy",
                      "source",
                      "quote",
                      "verify",
                      "lease",
                      "license",
                      "hire",
                      "retrieve",
                      "convert",
                      "other"
                    ],
                    "description": "What you want done"
                  },
                  "need": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "The requirement in your own words"
                  },
                  "specifications": {
                    "type": "object",
                    "properties": {
                      "party_name": {
                        "type": "string",
                        "description": "Name to screen",
                        "maxLength": 200,
                        "x-facet": "identifier"
                      },
                      "party_type": {
                        "type": "string",
                        "enum": [
                          "individual",
                          "organization",
                          "vessel",
                          "aircraft",
                          "unknown"
                        ],
                        "description": "What the party is",
                        "x-facet": "specification"
                      },
                      "lists_required": {
                        "type": "array",
                        "maxItems": 20,
                        "description": "Which lists you must screen against, e.g. OFAC SDN, EU, UK HMT, UN",
                        "x-facet": "specification",
                        "items": {
                          "type": "string",
                          "maxLength": 60
                        }
                      },
                      "batch_size": {
                        "type": "integer",
                        "minimum": 1,
                        "description": "How many names per run",
                        "x-facet": "quantity"
                      }
                    },
                    "description": "Details you already know. The business helps resolve missing specifications in the continuing engagement."
                  },
                  "quantity": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "number"
                      },
                      "unit": {
                        "type": "string"
                      },
                      "per": {
                        "type": "string"
                      }
                    }
                  },
                  "timing": {
                    "type": "object",
                    "properties": {
                      "earliest": {
                        "type": "string"
                      },
                      "latest": {
                        "type": "string"
                      },
                      "recurrence": {
                        "type": "string"
                      },
                      "text": {
                        "type": "string"
                      }
                    }
                  },
                  "geography": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string"
                      },
                      "country": {
                        "type": "string"
                      },
                      "from": {
                        "type": "string"
                      },
                      "to": {
                        "type": "string"
                      }
                    }
                  },
                  "budget": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "number"
                      },
                      "currency": {
                        "type": "string",
                        "description": "ISO 4217, default USD"
                      },
                      "per": {
                        "type": "string",
                        "description": "total, unit, month, year, load, ..."
                      }
                    }
                  },
                  "requested_fields": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 30,
                    "description": "Result fields you need"
                  },
                  "contact": {
                    "type": "object",
                    "description": "Optional; stored apart from the requirement, kept while we correspond or do business and for 24 months after, then deleted; you can ask us to delete it sooner",
                    "properties": {
                      "email": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "organization": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Kept on file; the receipt carries the reference number and what happens next"
          },
          "400": {
            "description": "Not a valid request"
          }
        }
      }
    },
    "/sanctions-screening/op/screen": {
      "get": {
        "operationId": "sanctions_screening_screen",
        "summary": "SDN entries and aliases whose normalized name is similar to the given name, with scores, programs and the list publication date.",
        "description": "Limits: names up to 200 characters; at most 20 matches per answer; a name in Cyrillic, Greek, Georgian, Armenian, Arabic, Persian, Hebrew, Chinese, Korean or Japanese kana is screened by transliteration (screened: TRANSLITERATED, with the forms and systems tried), which is weaker than screening the official Latin spelling; Thai, Devanagari, other scripts and Japanese kanji are not transliterated: such a name is answered 422, not screened; matches are spelling or whole-name matches at or above the floor; weaker tiers come apart in leads, each labelled: PARTIAL_NAME (part of a name shared with a listed one, too little to be that party; each says why) and SKELETON (a consonant-skeleton fit for Arabic, Persian and Hebrew, which never produce a match tier); summary says which tiers answered, and at most 20 leads are returned, with leads_truncated when there were more.",
        "tags": [
          "Plumbline"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Name to screen, as written, in any script"
          },
          {
            "name": "min_score",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Similarity floor, default 0.82"
          }
        ],
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "example": {
                  "query": "Banco Nacional de Cuba",
                  "matches": [
                    {
                      "ofac_uid": "306",
                      "listed_name": "BANCO NACIONAL DE CUBA",
                      "score": 1,
                      "match_basis": "EXACT",
                      "reason": "Same as the listed name once case, accents, punctuation and legal-form words are set aside",
                      "type": "organization",
                      "programs": "CUBA",
                      "list": "SDN"
                    }
                  ],
                  "publication": "2026-10-27",
                  "fetched_at": "2026-11-03T06:17:00Z",
                  "note": "A match is a lead for review, not a sanctions determination.",
                  "recall_note": "Where this finds less than OFAC's own Sanctions List Search: spelling is scored over the whole name, not word by word, so a listed name inside a longer name is found only when its words are spelled as listed and written together in order (or as one word). A listed person, written surname first, is found inside a longer name by the surname and the first given name together, in any order, and only when one of them is held by at most 20 listed entries; a surname with only a title is not. A single word is matched on its own (typed alone, or as a one-word listed name inside a longer name) only when at most 20 listed entries hold it and it has at least 4 letters (5 inside a longer name, or 4 for an initialism the list shows to be one, such as LTTE or NIOC); a one-word listed name that is an ordinary English word, such as PHOENIX, scores 0.80 inside a longer name, under the default floor. A vessel's or an aircraft's name is found inside a longer name only beside words that name a craft, such as MV or IMO. A word both names share, with other words around it in each, is not a match. Legal forms are set aside from a fixed list (such as LLC, AO, joint stock company, limited liability company); any other form counts as a word of the name. Every word of a name of two or more words found in a listed name is a match, counting a word one of them writes as two (Abdul Rahman for ABDULRAHMAN), and so is a whole listed name with its word spaces elsewhere. A person written with initials is found by the surname and one initial for each given name, in order, where the surname is held by at most 20 listed entries; dotted initials that together spell a legal form (Ivanov S.A.) are set aside as that form. In words of five letters or more, ae, oe and ue followed by a consonant other than y are read as a, o and u, unless that consonant is a final l (MUELLER is read as MULLER; ISRAEL and SAMUEL are not changed); no other respelling is made. Some names these rules reach are returned as leads, not matches: part of a listed name made only of personal names that are common on the list, none of them held by 20 entries or fewer (a word that joins two listed words, such as ABUBAKR, is judged by those two); a one-word listed name beside only given names and surnames; and a surname and one given name read from Korean, Chinese or Japanese. At most 20 leads are returned, and leads_truncated says when there were more. A title written onto the end of a Chinese, Korean or Japanese name with no space is set aside only where it is one of 先生, 书记, 同志, 동지, 님, さん and 様; any other is read as part of the name. Screen each spelling you have."
                }
              }
            }
          },
          "503": {
            "description": "Daily allowance reached or a source unavailable"
          }
        }
      }
    },
    "/entity-verification/requests": {
      "post": {
        "operationId": "entity_verification_request",
        "summary": "Send a requirement: Legal entity verification by name, LEI or CIK",
        "description": "Plumbline. A request that names the companies to check in specifications.counterparties is recorded with a reference and is for a supplier verification report, which Plumbline produces itself from the public registries: its price, and whether it can be ordered now, are stated under Price on this page and in the business's machine description. Once a firm offer is accepted and our payment processor confirms the payment, the report is produced and retrievable with the order link. The single lookup answers one name, LEI, CIK or ticker from GLEIF and SEC EDGAR where this deployment runs it, and this page says whether it does. Nothing is inferred: a company with no LEI and no SEC filings returns no match, and the answer says so.",
        "tags": [
          "Plumbline"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "need"
                ],
                "properties": {
                  "continuation": {
                    "type": "object",
                    "required": [
                      "id",
                      "token"
                    ],
                    "description": "Optional receipt credentials to continue an existing requirement with this business",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "token": {
                        "type": "string"
                      }
                    }
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "buy",
                      "source",
                      "quote",
                      "verify",
                      "lease",
                      "license",
                      "hire",
                      "retrieve",
                      "convert",
                      "other"
                    ],
                    "description": "What you want done"
                  },
                  "need": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "The requirement in your own words"
                  },
                  "specifications": {
                    "type": "object",
                    "properties": {
                      "legal_name": {
                        "type": "string",
                        "description": "The company's name as you have it",
                        "maxLength": 200,
                        "x-facet": "identifier"
                      },
                      "lei": {
                        "type": "string",
                        "description": "Legal Entity Identifier, 20 characters",
                        "maxLength": 20,
                        "x-facet": "identifier"
                      },
                      "cik": {
                        "type": "string",
                        "description": "SEC Central Index Key",
                        "maxLength": 10,
                        "x-facet": "identifier"
                      },
                      "jurisdiction": {
                        "type": "string",
                        "description": "Country or ISO 3166 code where the company is registered",
                        "maxLength": 60,
                        "x-facet": "geography"
                      },
                      "checks_needed": {
                        "type": "array",
                        "maxItems": 20,
                        "description": "What you need confirmed, e.g. registered address, status, ownership",
                        "x-facet": "specification",
                        "items": {
                          "type": "string",
                          "maxLength": 80
                        }
                      },
                      "volume": {
                        "type": "integer",
                        "description": "How many entities you need verified",
                        "minimum": 1,
                        "x-facet": "quantity",
                        "x-counts": "counterparties"
                      },
                      "counterparties": {
                        "type": "array",
                        "maxItems": 25,
                        "x-facet": "identifier",
                        "description": "The companies one supplier verification report covers, up to 25, each with its name and optionally its country, LEI or SEC CIK",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "maxLength": 200,
                              "description": "The company's name as you have it"
                            },
                            "country": {
                              "type": "string",
                              "maxLength": 2,
                              "description": "ISO 3166 alpha-2 country code, to narrow the LEI search"
                            },
                            "lei": {
                              "type": "string",
                              "maxLength": 20,
                              "description": "Legal Entity Identifier, if you have it"
                            },
                            "cik": {
                              "type": "string",
                              "maxLength": 10,
                              "description": "SEC Central Index Key, if the company files with the SEC"
                            }
                          }
                        }
                      }
                    },
                    "description": "Details you already know. The business helps resolve missing specifications in the continuing engagement."
                  },
                  "quantity": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "number"
                      },
                      "unit": {
                        "type": "string"
                      },
                      "per": {
                        "type": "string"
                      }
                    }
                  },
                  "timing": {
                    "type": "object",
                    "properties": {
                      "earliest": {
                        "type": "string"
                      },
                      "latest": {
                        "type": "string"
                      },
                      "recurrence": {
                        "type": "string"
                      },
                      "text": {
                        "type": "string"
                      }
                    }
                  },
                  "geography": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string"
                      },
                      "country": {
                        "type": "string"
                      },
                      "from": {
                        "type": "string"
                      },
                      "to": {
                        "type": "string"
                      }
                    }
                  },
                  "budget": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "number"
                      },
                      "currency": {
                        "type": "string",
                        "description": "ISO 4217, default USD"
                      },
                      "per": {
                        "type": "string",
                        "description": "total, unit, month, year, load, ..."
                      }
                    }
                  },
                  "requested_fields": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 30,
                    "description": "Result fields you need"
                  },
                  "contact": {
                    "type": "object",
                    "description": "Optional; stored apart from the requirement, kept while we correspond or do business and for 24 months after, then deleted; you can ask us to delete it sooner",
                    "properties": {
                      "email": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "organization": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Kept on file; the receipt carries the reference number and what happens next"
          },
          "400": {
            "description": "Not a valid request"
          }
        }
      }
    },
    "/entity-verification/op/lookup": {
      "get": {
        "operationId": "entity_verification_lookup",
        "summary": "LEI records matching a name or an LEI, and the SEC EDGAR registration for a CIK or ticker, each with its registry source and retrieval time.",
        "description": "Limits: at most 10 LEI records per answer; EDGAR only for a CIK or a ticker in SEC's company list.",
        "tags": [
          "Plumbline"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Legal name or part of it"
          },
          {
            "name": "lei",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "A 20-character LEI"
          },
          {
            "name": "cik",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "SEC CIK"
          },
          {
            "name": "ticker",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Stock ticker of an SEC filer"
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "ISO 3166 alpha-2 code to narrow a name search"
          }
        ],
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "example": {
                  "query": {
                    "name": "Apple Inc.",
                    "ticker": "AAPL"
                  },
                  "lei_records": [
                    {
                      "lei": "HWUPKR0MPOU8FGXBT394",
                      "legal_name": "Apple Inc.",
                      "jurisdiction": "US-CA",
                      "entity_status": "ACTIVE",
                      "registration_status": "ISSUED",
                      "next_renewal": "2027-03-08",
                      "legal_address": "C/O C T Corporation System, 330 N. Brand Blvd, Suite 700, Glendale, US-CA, 91203, US",
                      "headquarters_address": "One Apple Park Way, Cupertino, US-CA, 95014, US",
                      "registration_authority": "RA000598",
                      "registration_authority_entity_id": "806592"
                    }
                  ],
                  "edgar": {
                    "cik": "0000320193",
                    "name": "Apple Inc.",
                    "sic": "3571",
                    "sic_description": "Electronic Computers",
                    "state_of_incorporation": "CA",
                    "business_address": "ONE APPLE PARK WAY, CUPERTINO, CA, 95014",
                    "recent_filings": [
                      {
                        "form": "10-K",
                        "filed": "2026-11-03",
                        "accession": "0000320193-26-000026"
                      }
                    ]
                  },
                  "sources": [
                    {
                      "registry": "GLEIF",
                      "url": "https://api.gleif.org/api/v1/lei-records/HWUPKR0MPOU8FGXBT394",
                      "retrieved_at": "2026-11-03T19:05:00Z"
                    },
                    {
                      "registry": "SEC EDGAR",
                      "url": "https://data.sec.gov/submissions/CIK0000320193.json",
                      "retrieved_at": "2026-11-03T19:05:00Z"
                    }
                  ],
                  "not_found": []
                }
              }
            }
          },
          "402": {
            "description": "Payment required: $0.02 via x402 (USDC on eip155:84532)"
          },
          "503": {
            "description": "Daily allowance reached or a source unavailable"
          }
        }
      }
    },
    "/company-financials/requests": {
      "post": {
        "operationId": "company_financials_request",
        "summary": "Send a requirement: Reported financial figures for US public companies",
        "description": "Plumbline. The call reads SEC EDGAR's XBRL companyconcept API for the CIK or ticker and concept you give, and returns every reported value with its period, form, fiscal year and accession number. Figures are as filed; restatements appear as separate rows.",
        "tags": [
          "Plumbline"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "need"
                ],
                "properties": {
                  "continuation": {
                    "type": "object",
                    "required": [
                      "id",
                      "token"
                    ],
                    "description": "Optional receipt credentials to continue an existing requirement with this business",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "token": {
                        "type": "string"
                      }
                    }
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "buy",
                      "source",
                      "quote",
                      "verify",
                      "lease",
                      "license",
                      "hire",
                      "retrieve",
                      "convert",
                      "other"
                    ],
                    "description": "What you want done"
                  },
                  "need": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "The requirement in your own words"
                  },
                  "specifications": {
                    "type": "object",
                    "properties": {
                      "company": {
                        "type": "string",
                        "description": "Company name, ticker or CIK",
                        "maxLength": 200,
                        "x-facet": "identifier"
                      },
                      "metrics": {
                        "type": "array",
                        "maxItems": 20,
                        "description": "Figures needed, e.g. revenue, operating margin, headcount",
                        "x-facet": "specification",
                        "items": {
                          "type": "string",
                          "maxLength": 80
                        }
                      },
                      "periods": {
                        "type": "string",
                        "description": "Fiscal years or quarters",
                        "maxLength": 80,
                        "x-facet": "timing"
                      },
                      "companies_count": {
                        "type": "integer",
                        "minimum": 1,
                        "description": "How many companies",
                        "x-facet": "quantity"
                      }
                    },
                    "description": "Details you already know. The business helps resolve missing specifications in the continuing engagement."
                  },
                  "quantity": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "number"
                      },
                      "unit": {
                        "type": "string"
                      },
                      "per": {
                        "type": "string"
                      }
                    }
                  },
                  "timing": {
                    "type": "object",
                    "properties": {
                      "earliest": {
                        "type": "string"
                      },
                      "latest": {
                        "type": "string"
                      },
                      "recurrence": {
                        "type": "string"
                      },
                      "text": {
                        "type": "string"
                      }
                    }
                  },
                  "geography": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string"
                      },
                      "country": {
                        "type": "string"
                      },
                      "from": {
                        "type": "string"
                      },
                      "to": {
                        "type": "string"
                      }
                    }
                  },
                  "budget": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "number"
                      },
                      "currency": {
                        "type": "string",
                        "description": "ISO 4217, default USD"
                      },
                      "per": {
                        "type": "string",
                        "description": "total, unit, month, year, load, ..."
                      }
                    }
                  },
                  "requested_fields": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 30,
                    "description": "Result fields you need"
                  },
                  "contact": {
                    "type": "object",
                    "description": "Optional; stored apart from the requirement, kept while we correspond or do business and for 24 months after, then deleted; you can ask us to delete it sooner",
                    "properties": {
                      "email": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "organization": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Kept on file; the receipt carries the reference number and what happens next"
          },
          "400": {
            "description": "Not a valid request"
          }
        }
      }
    },
    "/company-financials/op/facts": {
      "get": {
        "operationId": "company_financials_facts",
        "summary": "Every reported value of one XBRL concept for one SEC filer, with period, form and accession number.",
        "description": "Limits: one company and one concept per call; the 40 most recent values.",
        "tags": [
          "Plumbline"
        ],
        "parameters": [
          {
            "name": "cik",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "SEC CIK"
          },
          {
            "name": "ticker",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Ticker"
          },
          {
            "name": "concept",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "XBRL concept name, default Revenues"
          },
          {
            "name": "taxonomy",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Default us-gaap"
          }
        ],
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "example": {
                  "cik": "0000320193",
                  "entity": "Apple Inc.",
                  "concept": "RevenueFromContractWithCustomerExcludingAssessedTax",
                  "unit": "USD",
                  "values": [
                    {
                      "start": "2025-09-28",
                      "end": "2026-09-26",
                      "value": 478834000000,
                      "form": "10-K",
                      "fy": 2026,
                      "fp": "FY",
                      "filed": "2026-11-03",
                      "accession": "0000320193-26-000026"
                    }
                  ],
                  "source": "https://data.sec.gov/api/xbrl/companyconcept/CIK0000320193/us-gaap/RevenueFromContractWithCustomerExcludingAssessedTax.json"
                }
              }
            }
          },
          "503": {
            "description": "Daily allowance reached or a source unavailable"
          }
        }
      }
    },
    "/federal-awards/requests": {
      "post": {
        "operationId": "federal_awards_request",
        "summary": "Send a requirement: US federal contract awards by recipient, industry or place",
        "description": "Plumbline. The call sends your filters to the FPDS public ATOM feed and returns the matching contract actions ten at a time, in FPDS order: each award or modification with its contract number, signing date, vendor, agency, the amount it obligated, the contract's total obligated to date, the NAICS code, the place of performance and a link to the FPDS record. Without a fiscal year, it searches actions signed in the last twelve months. Nothing is estimated or summed.",
        "tags": [
          "Plumbline"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "need"
                ],
                "properties": {
                  "continuation": {
                    "type": "object",
                    "required": [
                      "id",
                      "token"
                    ],
                    "description": "Optional receipt credentials to continue an existing requirement with this business",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "token": {
                        "type": "string"
                      }
                    }
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "buy",
                      "source",
                      "quote",
                      "verify",
                      "lease",
                      "license",
                      "hire",
                      "retrieve",
                      "convert",
                      "other"
                    ],
                    "description": "What you want done"
                  },
                  "need": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "The requirement in your own words"
                  },
                  "specifications": {
                    "type": "object",
                    "properties": {
                      "recipient": {
                        "type": "string",
                        "maxLength": 200,
                        "description": "Company receiving awards",
                        "x-facet": "identifier"
                      },
                      "naics": {
                        "type": "string",
                        "maxLength": 6,
                        "description": "NAICS industry code",
                        "x-facet": "identifier"
                      },
                      "agency": {
                        "type": "string",
                        "maxLength": 120,
                        "description": "Awarding agency",
                        "x-facet": "specification"
                      },
                      "fiscal_years": {
                        "type": "string",
                        "maxLength": 40,
                        "description": "Fiscal years of interest",
                        "x-facet": "timing"
                      },
                      "state": {
                        "type": "string",
                        "maxLength": 2,
                        "description": "Place of performance state",
                        "x-facet": "geography"
                      }
                    },
                    "description": "Details you already know. The business helps resolve missing specifications in the continuing engagement."
                  },
                  "quantity": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "number"
                      },
                      "unit": {
                        "type": "string"
                      },
                      "per": {
                        "type": "string"
                      }
                    }
                  },
                  "timing": {
                    "type": "object",
                    "properties": {
                      "earliest": {
                        "type": "string"
                      },
                      "latest": {
                        "type": "string"
                      },
                      "recurrence": {
                        "type": "string"
                      },
                      "text": {
                        "type": "string"
                      }
                    }
                  },
                  "geography": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string"
                      },
                      "country": {
                        "type": "string"
                      },
                      "from": {
                        "type": "string"
                      },
                      "to": {
                        "type": "string"
                      }
                    }
                  },
                  "budget": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "number"
                      },
                      "currency": {
                        "type": "string",
                        "description": "ISO 4217, default USD"
                      },
                      "per": {
                        "type": "string",
                        "description": "total, unit, month, year, load, ..."
                      }
                    }
                  },
                  "requested_fields": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 30,
                    "description": "Result fields you need"
                  },
                  "contact": {
                    "type": "object",
                    "description": "Optional; stored apart from the requirement, kept while we correspond or do business and for 24 months after, then deleted; you can ask us to delete it sooner",
                    "properties": {
                      "email": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "organization": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Kept on file; the receipt carries the reference number and what happens next"
          },
          "400": {
            "description": "Not a valid request"
          }
        }
      }
    },
    "/federal-awards/op/search": {
      "get": {
        "operationId": "federal_awards_search",
        "summary": "Up to ten federal contract actions matching vendor, NAICS, place-of-performance state and fiscal year, from FPDS, with the start of the next page.",
        "description": "Limits: ten contract actions per answer; page with start; contract actions in FPDS order, not sorted by amount; without a fiscal year, actions signed in the last twelve months.",
        "tags": [
          "Plumbline"
        ],
        "parameters": [
          {
            "name": "recipient",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Vendor name text, as reported to FPDS"
          },
          {
            "name": "naics",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "NAICS code"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Place-of-performance state, two letters"
          },
          {
            "name": "fiscal_year",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            },
            "description": "Federal fiscal year"
          },
          {
            "name": "start",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            },
            "description": "Where the page starts: 0, 10, 20 and so on"
          }
        ],
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "example": {
                  "filters": {
                    "recipient": "LOCKHEED MARTIN",
                    "fiscal_year": 2025,
                    "signed_between": [
                      "2024/10/01",
                      "2025/09/30"
                    ]
                  },
                  "actions": [
                    {
                      "piid": "0001",
                      "modification": "10",
                      "signed_date": "2025-01-28",
                      "vendor": "LOCKHEED MARTIN CORPORATION (3632)",
                      "department": "DEPT OF DEFENSE",
                      "agency": "DEFENSE CONTRACT MANAGEMENT AGENCY (DCMA)",
                      "obligated_amount": -466098.9,
                      "total_obligated_amount": 1964384.2,
                      "base_and_all_options_value": -466098.9,
                      "naics": "334419",
                      "naics_description": "OTHER ELECTRONIC COMPONENT MANUFACTURING",
                      "place_of_performance_state": "NY",
                      "description": "UNDEFINITIZED ORDER",
                      "url": "https://www.fpds.gov/ezsearch/search.do?s=FPDS&indexName=awardfull&templateName=1.5.3&q=0001+9700+"
                    }
                  ],
                  "next_start": 10,
                  "note": "Each item is one contract action as reported to FPDS (an award or a modification): obligated_amount is that action's, total_obligated_amount the contract's to date. Results come in FPDS order, not by amount.",
                  "source": "https://www.fpds.gov/ezsearch/FEEDS/ATOM?FEEDNAME=PUBLIC&q=VENDOR_NAME%3A%22LOCKHEED%20MARTIN%22%20SIGNED_DATE%3A%5B2024%2F10%2F01%2C2025%2F09%2F30%5D&start=0"
                }
              }
            }
          },
          "503": {
            "description": "Daily allowance reached or a source unavailable"
          }
        }
      }
    },
    "/_c/requests/{id}": {
      "get": {
        "operationId": "request_status",
        "summary": "Resume your recorded requirement and linked offers",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "t",
            "in": "query",
            "required": true,
            "description": "Private receipt/link token. Never publish it.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{48}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current customer-visible state; payment links are not proof of payment"
          },
          "400": {
            "description": "Invalid input"
          },
          "404": {
            "description": "Unknown resource or invalid credentials"
          },
          "409": {
            "description": "State or terms conflict"
          }
        }
      }
    },
    "/_c/offers/{id}": {
      "get": {
        "operationId": "inspect_offer",
        "summary": "Authorized terms, order and processor payment state",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "t",
            "in": "query",
            "required": true,
            "description": "Private receipt/link token. Never publish it.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{48}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current customer-visible state; payment links are not proof of payment"
          },
          "400": {
            "description": "Invalid input"
          },
          "404": {
            "description": "Unknown resource or invalid credentials"
          },
          "409": {
            "description": "State or terms conflict"
          }
        }
      }
    },
    "/_c/offers/{id}/accept": {
      "post": {
        "operationId": "accept_offer",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "t",
            "in": "query",
            "required": true,
            "description": "Private receipt/link token. Never publish it.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{48}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "terms_sha256",
                  "accept",
                  "name"
                ],
                "properties": {
                  "terms_sha256": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "description": "Exact terms_sha256 returned by inspect_offer"
                  },
                  "accept": {
                    "const": true
                  },
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "organization": {
                    "type": "string",
                    "maxLength": 160
                  },
                  "purchase_order": {
                    "type": "string",
                    "maxLength": 80
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Current customer-visible state; payment links are not proof of payment"
          },
          "400": {
            "description": "Invalid input"
          },
          "404": {
            "description": "Unknown resource or invalid credentials"
          },
          "409": {
            "description": "State or terms conflict"
          }
        }
      }
    },
    "/_c/offers/{id}/deliverable": {
      "get": {
        "operationId": "retrieve_deliverable",
        "summary": "The paid order's deliverable: exact text, SHA-256, version, sources and shortfall",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "t",
            "in": "query",
            "required": true,
            "description": "Private receipt/link token. Never publish it.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{48}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current customer-visible state; payment links are not proof of payment"
          },
          "400": {
            "description": "Invalid input"
          },
          "404": {
            "description": "Unknown resource or invalid credentials"
          },
          "409": {
            "description": "State or terms conflict"
          }
        }
      }
    },
    "/_c/offers/{id}/decline": {
      "post": {
        "operationId": "decline_offer",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "t",
            "in": "query",
            "required": true,
            "description": "Private receipt/link token. Never publish it.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{48}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "terms_sha256"
                ],
                "properties": {
                  "terms_sha256": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "description": "Exact terms_sha256 returned by inspect_offer"
                  },
                  "reason": {
                    "type": "string",
                    "maxLength": 500
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Current customer-visible state; payment links are not proof of payment"
          },
          "400": {
            "description": "Invalid input"
          },
          "404": {
            "description": "Unknown resource or invalid credentials"
          },
          "409": {
            "description": "State or terms conflict"
          }
        }
      }
    },
    "/_c/offers/{id}/release": {
      "post": {
        "operationId": "release_payment",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "t",
            "in": "query",
            "required": true,
            "description": "Private receipt/link token. Never publish it.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{48}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "terms_sha256",
                  "payment",
                  "confirm"
                ],
                "properties": {
                  "terms_sha256": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "description": "Exact terms_sha256 returned by inspect_offer"
                  },
                  "payment": {
                    "type": "string"
                  },
                  "confirm": {
                    "const": true
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 120
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Current customer-visible state; payment links are not proof of payment"
          },
          "400": {
            "description": "Invalid input"
          },
          "404": {
            "description": "Unknown resource or invalid credentials"
          },
          "409": {
            "description": "State or terms conflict"
          }
        }
      }
    },
    "/_c/offers/{id}/counter": {
      "post": {
        "operationId": "counter_offer",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "t",
            "in": "query",
            "required": true,
            "description": "Private receipt/link token. Never publish it.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{48}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "terms_sha256",
                  "proposal",
                  "name"
                ],
                "properties": {
                  "terms_sha256": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "description": "Exact terms_sha256 returned by inspect_offer"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "organization": {
                    "type": "string",
                    "maxLength": 160
                  },
                  "agent": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "Your agent's name, if you want it recorded with the act"
                  },
                  "proposal": {
                    "type": "object",
                    "minProperties": 1,
                    "description": "A proposal, not a change: the terms stand until the business issues a revised offer",
                    "properties": {
                      "quantities": {
                        "type": "array",
                        "minItems": 1,
                        "items": {
                          "type": "object",
                          "required": [
                            "item",
                            "quantity"
                          ],
                          "properties": {
                            "item": {
                              "type": "integer",
                              "minimum": 0,
                              "description": "0-based index into terms.items"
                            },
                            "quantity": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            }
                          }
                        }
                      },
                      "counterparties": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 25,
                        "items": {
                          "type": "object",
                          "required": [
                            "name"
                          ],
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 160
                            },
                            "country": {
                              "type": "string",
                              "pattern": "^[A-Za-z]{2}$"
                            },
                            "identifier": {
                              "type": "string",
                              "maxLength": 40
                            }
                          }
                        }
                      },
                      "deliver_by": {
                        "type": "string",
                        "format": "date"
                      },
                      "total_minor": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "payment": {
                        "type": "object",
                        "required": [
                          "kind"
                        ],
                        "properties": {
                          "kind": {
                            "enum": [
                              "CHECKOUT_FULL",
                              "INVOICE"
                            ]
                          },
                          "days_until_due": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 90
                          }
                        }
                      },
                      "note": {
                        "type": "string",
                        "maxLength": 1000
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Current customer-visible state; payment links are not proof of payment"
          },
          "400": {
            "description": "Invalid input"
          },
          "404": {
            "description": "Unknown resource or invalid credentials"
          },
          "409": {
            "description": "State or terms conflict"
          }
        }
      }
    },
    "/_c/offers/{id}/purchase-order": {
      "post": {
        "operationId": "submit_purchase_order",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "t",
            "in": "query",
            "required": true,
            "description": "Private receipt/link token. Never publish it.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{48}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "terms_sha256",
                  "po",
                  "name"
                ],
                "properties": {
                  "terms_sha256": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "description": "Exact terms_sha256 returned by inspect_offer"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "organization": {
                    "type": "string",
                    "maxLength": 160
                  },
                  "agent": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "Your agent's name, if you want it recorded with the act"
                  },
                  "po": {
                    "type": "object",
                    "required": [
                      "number",
                      "lines",
                      "total_minor",
                      "currency",
                      "payment_terms_days"
                    ],
                    "description": "Matched against the accepted terms; differences are shown as exceptions",
                    "properties": {
                      "number": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9._/-]{1,60}$"
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": 1,
                        "default": 1
                      },
                      "buyer_vendor_id": {
                        "type": "string",
                        "maxLength": 80
                      },
                      "lines": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 40,
                        "items": {
                          "type": "object",
                          "required": [
                            "description",
                            "quantity",
                            "unit_price_minor",
                            "amount_minor"
                          ],
                          "properties": {
                            "description": {
                              "type": "string",
                              "maxLength": 300
                            },
                            "quantity": {
                              "type": "number",
                              "minimum": 0
                            },
                            "unit_price_minor": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "amount_minor": {
                              "type": "integer",
                              "minimum": 0
                            }
                          }
                        }
                      },
                      "total_minor": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$"
                      },
                      "payment_terms_days": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 120
                      },
                      "bill_to": {
                        "type": "string",
                        "maxLength": 300
                      },
                      "invoice_route": {
                        "type": "string",
                        "maxLength": 300
                      },
                      "document_sha256": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Current customer-visible state; payment links are not proof of payment"
          },
          "400": {
            "description": "Invalid input"
          },
          "404": {
            "description": "Unknown resource or invalid credentials"
          },
          "409": {
            "description": "State or terms conflict"
          }
        }
      }
    },
    "/_c/offers/{id}/purchasing-requirements": {
      "post": {
        "operationId": "state_purchasing_requirements",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "t",
            "in": "query",
            "required": true,
            "description": "Private receipt/link token. Never publish it.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{48}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "terms_sha256",
                  "requirements",
                  "name",
                  "organization"
                ],
                "properties": {
                  "terms_sha256": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "description": "Exact terms_sha256 returned by inspect_offer"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "organization": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 160
                  },
                  "agent": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "Your agent's name, if you want it recorded with the act"
                  },
                  "requirements": {
                    "type": "object",
                    "required": [
                      "vendor_approval_required",
                      "purchase_order_required"
                    ],
                    "properties": {
                      "vendor_approval_required": {
                        "type": "boolean"
                      },
                      "purchase_order_required": {
                        "type": "boolean"
                      },
                      "documents_required": {
                        "type": "array",
                        "maxItems": 12,
                        "items": {
                          "type": "string",
                          "maxLength": 80
                        }
                      },
                      "buyer_vendor_id": {
                        "type": "string",
                        "maxLength": 80
                      },
                      "route": {
                        "type": "string",
                        "maxLength": 300
                      },
                      "payment_terms_days": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 120
                      },
                      "note": {
                        "type": "string",
                        "maxLength": 1000
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Current customer-visible state; payment links are not proof of payment"
          },
          "400": {
            "description": "Invalid input"
          },
          "404": {
            "description": "Unknown resource or invalid credentials"
          },
          "409": {
            "description": "State or terms conflict"
          }
        }
      }
    },
    "/_c/offers/{id}/vendor-status": {
      "post": {
        "operationId": "report_vendor_status",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "t",
            "in": "query",
            "required": true,
            "description": "Private receipt/link token. Never publish it.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{48}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "terms_sha256",
                  "status",
                  "reference",
                  "name",
                  "organization"
                ],
                "properties": {
                  "terms_sha256": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "description": "Exact terms_sha256 returned by inspect_offer"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "organization": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 160
                  },
                  "agent": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "Your agent's name, if you want it recorded with the act"
                  },
                  "status": {
                    "enum": [
                      "APPROVED",
                      "DOCUMENTS_REQUESTED",
                      "REJECTED"
                    ]
                  },
                  "reference": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 200
                  },
                  "buyer_vendor_id": {
                    "type": "string",
                    "maxLength": 80
                  },
                  "documents_requested": {
                    "type": "array",
                    "maxItems": 12,
                    "items": {
                      "type": "string",
                      "maxLength": 80
                    }
                  },
                  "note": {
                    "type": "string",
                    "maxLength": 1000
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Current customer-visible state; payment links are not proof of payment"
          },
          "400": {
            "description": "Invalid input"
          },
          "404": {
            "description": "Unknown resource or invalid credentials"
          },
          "409": {
            "description": "State or terms conflict"
          }
        }
      }
    },
    "/_c/offers/{id}/inspection": {
      "post": {
        "operationId": "inspect_delivery",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "t",
            "in": "query",
            "required": true,
            "description": "Private receipt/link token. Never publish it.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{48}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "terms_sha256",
                  "lines",
                  "name"
                ],
                "properties": {
                  "terms_sha256": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "description": "Exact terms_sha256 returned by inspect_offer"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "organization": {
                    "type": "string",
                    "maxLength": 160
                  },
                  "agent": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "Your agent's name, if you want it recorded with the act"
                  },
                  "lines": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                      "type": "object",
                      "required": [
                        "item",
                        "accepted_quantity",
                        "rejected_quantity"
                      ],
                      "properties": {
                        "item": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "accepted_quantity": {
                          "type": "number",
                          "minimum": 0
                        },
                        "rejected_quantity": {
                          "type": "number",
                          "minimum": 0
                        },
                        "reason": {
                          "type": "string",
                          "maxLength": 300
                        }
                      }
                    }
                  },
                  "portion": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "note": {
                    "type": "string",
                    "maxLength": 1000
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Current customer-visible state; payment links are not proof of payment"
          },
          "400": {
            "description": "Invalid input"
          },
          "404": {
            "description": "Unknown resource or invalid credentials"
          },
          "409": {
            "description": "State or terms conflict"
          }
        }
      }
    },
    "/_c/offers/{id}/remedy": {
      "post": {
        "operationId": "answer_remedy",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "t",
            "in": "query",
            "required": true,
            "description": "Private receipt/link token. Never publish it.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{48}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "terms_sha256",
                  "remedy_id",
                  "answer",
                  "name"
                ],
                "properties": {
                  "terms_sha256": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "description": "Exact terms_sha256 returned by inspect_offer"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "organization": {
                    "type": "string",
                    "maxLength": 160
                  },
                  "agent": {
                    "type": "string",
                    "maxLength": 120,
                    "description": "Your agent's name, if you want it recorded with the act"
                  },
                  "remedy_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "answer": {
                    "enum": [
                      "ACCEPT",
                      "DECLINE"
                    ]
                  },
                  "note": {
                    "type": "string",
                    "maxLength": 1000
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Current customer-visible state; payment links are not proof of payment"
          },
          "400": {
            "description": "Invalid input"
          },
          "404": {
            "description": "Unknown resource or invalid credentials"
          },
          "409": {
            "description": "State or terms conflict"
          }
        }
      }
    }
  },
  "externalDocs": {
    "description": "Plumbline: Know who you are dealing with.",
    "url": "https://plumbline.forevenza.com/"
  }
}