{
  "openapi": "3.1.0",
  "info": {
    "title": "Decant",
    "version": "1",
    "description": "Decant: Documents into data for developers, analysts and operations staff who need documents, pages and datasets in a form software can use. Files in. Rows out. Decant is a hosted MCP server and HTTP API that converts CSV and XLSX into JSON rows under each sheet's headers, and text PDFs into numbered page text. Send file bytes or a public URL without an account or API key. Files up to 5 MB are processed in memory and not stored. Conversion is free within a shared daily allowance; no OCR or arbitrary schema extraction. Decant also reads public web pages into title, headings, text, links and JSON-LD, honouring robots.txt, and takes specifications for datasets to buy or license.",
    "x-commercial": {
      "business": "Decant",
      "price_basis": [
        {
          "kind": "PRICING_METHOD",
          "label": "How the price is worked out",
          "badge": "How it is priced",
          "applies_to": "File conversion and page reading",
          "statement": "The price is determined by each conversion or page read runs at once and is free within a daily allowance; no account or key is needed.",
          "status": "NO_FIGURE",
          "method": {
            "determined_by": [
              "each conversion or page read runs at once and is free within a daily allowance",
              "no account or key is needed"
            ],
            "inputs_needed": []
          },
          "included": [],
          "not_included": [],
          "validity": "Until a firm offer is made; an offer states its own validity.",
          "acceptable": false
        },
        {
          "kind": "SCOPED_QUOTATION",
          "label": "Quoted after scoping",
          "badge": "Quoted after scoping",
          "applies_to": "Datasets to license",
          "statement": "No figure is published before scoping, because none on record would hold for your situation. What is scoped first: domain, fields and coverage; history and refresh; the use the licence must permit. Licence terms from the data's owner, set out in a firm offer or agreed with the owner directly, as the reply says.",
          "status": "NO_FIGURE",
          "scoping": {
            "scoped": [
              "domain, fields and coverage",
              "history and refresh",
              "the use the licence must permit"
            ],
            "buyer_can_accept": "Licence terms from the data's owner, set out in a firm offer or agreed with the owner directly, as the reply says."
          },
          "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. Decant'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 Decant: the seller named on the offer you accept.",
        "performed_by": "Decant's own systems, for conversions and page reading. A dataset licence is granted by the data's owner.",
        "business_does": "Runs conversions and page reading itself. For a dataset, sets out the requirement and looks for a source and its licence terms.",
        "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": [
          "Nothing here interprets a licence, and datasets of personal information about individuals are recorded only as a stated need."
        ],
        "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://decant.forevenza.com"
    }
  ],
  "tags": [
    {
      "name": "Decant",
      "description": "Decant is a hosted MCP server and HTTP API that converts CSV and XLSX into JSON rows under each sheet's headers, and text PDFs into numbered page text. Send file bytes or a public URL without an account or API key. Files up to 5 MB are processed in memory and not stored. Conversion is free within a shared daily allowance; no OCR or arbitrary schema extraction. Decant also reads public web pages into title, headings, text, links and JSON-LD, honouring robots.txt, and takes specifications for datasets to buy or license."
    }
  ],
  "paths": {
    "/document-conversion/requests": {
      "post": {
        "operationId": "document_conversion_request",
        "summary": "Send a requirement: Turn a spreadsheet or PDF into JSON",
        "description": "Decant. You send the file (up to 5 MB) or a public link to it. CSV and XLSX become one JSON object per row under each sheet's header row; a PDF with a text layer becomes its text per page. Scanned PDFs without text are reported as such rather than guessed at. The file is processed in memory and not stored.",
        "tags": [
          "Decant"
        ],
        "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": {
                      "file_type": {
                        "type": "string",
                        "enum": [
                          "csv",
                          "xlsx",
                          "pdf",
                          "docx",
                          "image",
                          "other"
                        ],
                        "description": "What you have",
                        "x-facet": "specification"
                      },
                      "target_fields": {
                        "type": "array",
                        "maxItems": 40,
                        "description": "Fields you need out of it",
                        "x-facet": "specification",
                        "items": {
                          "type": "string",
                          "maxLength": 80
                        }
                      },
                      "files": {
                        "type": "integer",
                        "minimum": 1,
                        "description": "How many files",
                        "x-facet": "quantity"
                      },
                      "pages_per_file": {
                        "type": "integer",
                        "minimum": 1,
                        "description": "Typical pages per file",
                        "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"
          }
        }
      }
    },
    "/document-conversion/op/convert": {
      "post": {
        "operationId": "document_conversion_convert",
        "summary": "CSV or XLSX to JSON rows per sheet; text PDF to text per page.",
        "description": "Limits: 5 MB; 20,000 rows per sheet; no OCR.",
        "tags": [
          "Decant"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "Public link to the file, instead of a raw upload"
                  },
                  "sheet": {
                    "type": "string",
                    "maxLength": 100,
                    "description": "Only this sheet"
                  },
                  "file_base64": {
                    "type": "string",
                    "maxLength": 6990508,
                    "description": "File bytes as standard padded base64, up to 5 MB decoded; use instead of url or a raw file body. Transmitted to Decant, processed in memory, not stored."
                  },
                  "filename": {
                    "type": "string",
                    "maxLength": 200,
                    "description": "Optional filename with extension for type detection; not a local path"
                  },
                  "offset": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "First row to return from each sheet (0-based); with limit, pages a large file"
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 20000,
                    "description": "At most this many rows per sheet; row_count stays the total and next_offset says where the next page starts"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "example": {
                  "type": "xlsx",
                  "sheets": [
                    {
                      "name": "Prices",
                      "header": [
                        "sku",
                        "description",
                        "unit_price"
                      ],
                      "rows": [
                        {
                          "sku": "A-100",
                          "description": "Hex bolt M8",
                          "unit_price": 0.12
                        }
                      ],
                      "row_count": 1,
                      "truncated": false
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "Daily allowance reached or a source unavailable"
          }
        }
      }
    },
    "/web-extraction/requests": {
      "post": {
        "operationId": "web_extraction_request",
        "summary": "Send a requirement: Read a public web page into structured text",
        "description": "Decant. The page is fetched once from the public internet, after its robots.txt is checked for our user agent. Private, internal and this service's own addresses are refused before any request; at most three redirects are followed, each checked again; 5 MB and 10 seconds are the limits. The answer is built from that one response; JavaScript is not run.",
        "tags": [
          "Decant"
        ],
        "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": {
                      "url": {
                        "type": "string",
                        "maxLength": 2000,
                        "description": "Page to read",
                        "x-facet": "identifier"
                      },
                      "fields": {
                        "type": "array",
                        "maxItems": 30,
                        "description": "Data you need from the pages, e.g. prices, SKUs, contact",
                        "x-facet": "specification",
                        "items": {
                          "type": "string",
                          "maxLength": 80
                        }
                      },
                      "pages": {
                        "type": "integer",
                        "minimum": 1,
                        "description": "How many pages",
                        "x-facet": "quantity"
                      },
                      "refresh": {
                        "type": "string",
                        "maxLength": 40,
                        "description": "How often, e.g. daily",
                        "x-facet": "timing"
                      }
                    },
                    "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"
          }
        }
      }
    },
    "/web-extraction/op/extract": {
      "post": {
        "operationId": "web_extraction_extract",
        "summary": "One public page as title, description, headings, text, links and JSON-LD.",
        "description": "Limits: 5 MB response, 10 seconds; three redirects; robots.txt honoured.",
        "tags": [
          "Decant"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "http or https URL of a public page"
                  }
                },
                "required": [
                  "url"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result",
            "content": {
              "application/json": {
                "example": {
                  "url": "https://example.com/",
                  "final_url": "https://example.com/",
                  "status": 200,
                  "content_type": "text/html; charset=UTF-8",
                  "title": "Example Domain",
                  "description": null,
                  "canonical": null,
                  "headings": [
                    {
                      "level": 1,
                      "text": "Example Domain"
                    }
                  ],
                  "text": "Example Domain This domain is for use in documentation examples without needing permission.",
                  "links": [
                    {
                      "href": "https://iana.org/domains/example",
                      "text": "Learn more"
                    }
                  ],
                  "json_ld": [],
                  "robots": "allowed",
                  "truncated": false
                }
              }
            }
          },
          "503": {
            "description": "Daily allowance reached or a source unavailable"
          }
        }
      }
    },
    "/dataset-licensing/requests": {
      "post": {
        "operationId": "dataset_licensing_request",
        "summary": "Send a requirement: Datasets to acquire or license, by domain and coverage",
        "description": "Decant. You get a reference number and your data requirement as a written specification. We look at every requirement, and when we can find a source of that data or get licence terms quoted, we reply to the email you leave. Nothing is ordered or committed until you agree terms. Contact details are kept apart from the requirement, while we correspond or do business and for 24 months after, so a later request picks up where it left off; ask us to delete them at any time.",
        "tags": [
          "Decant"
        ],
        "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": {
                      "domain": {
                        "type": "string",
                        "maxLength": 160,
                        "description": "What the data is about",
                        "x-facet": "specification"
                      },
                      "fields": {
                        "type": "array",
                        "maxItems": 40,
                        "description": "Fields or attributes required",
                        "x-facet": "specification",
                        "items": {
                          "type": "string",
                          "maxLength": 80
                        }
                      },
                      "coverage": {
                        "type": "string",
                        "maxLength": 200,
                        "description": "Geographic or market coverage",
                        "x-facet": "geography"
                      },
                      "history_start": {
                        "type": "string",
                        "maxLength": 40,
                        "description": "Earliest date the history must reach (YYYY-MM-DD)",
                        "x-facet": "timing"
                      },
                      "refresh": {
                        "type": "string",
                        "enum": [
                          "ONE_TIME",
                          "DAILY",
                          "WEEKLY",
                          "MONTHLY",
                          "QUARTERLY",
                          "REAL_TIME"
                        ],
                        "description": "How often the data must be updated",
                        "x-facet": "timing"
                      },
                      "intended_use": {
                        "type": "string",
                        "enum": [
                          "INTERNAL_ANALYSIS",
                          "COMMERCIAL_PRODUCT",
                          "MODEL_TRAINING",
                          "RESEARCH",
                          "REDISTRIBUTION"
                        ],
                        "description": "What the licence must permit",
                        "x-facet": "specification"
                      },
                      "delivery_format": {
                        "type": "string",
                        "enum": [
                          "CSV",
                          "PARQUET",
                          "API",
                          "DATABASE_SHARE",
                          "OTHER"
                        ],
                        "description": "How it is delivered",
                        "x-facet": "specification"
                      },
                      "record_count": {
                        "type": "integer",
                        "minimum": 0,
                        "description": "Approximate number of records or documents",
                        "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"
          }
        }
      }
    },
    "/_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": "Decant: Files in. Rows out.",
    "url": "https://decant.forevenza.com/"
  }
}