Skip to navigation

import_order_form

Turn a signed order form into a DRAFT quote, reconciled line by line

Live server: on mcp.solvimon.com only the draft actions are available, see Access modes.

Turns a signed order form or contract into a DRAFT quote that matches it, and reconciles the quote line by line against the contract. The agent reads the PDF and passes what it says as order_form; the server maps it onto your plan, checks every line and writes. All checks of create_quote apply too.

Run mode: validate (default) first. It writes nothing and returns the reconciliation. mode: apply builds the quote, and is refused while any line that doesn’t match is not listed in accept_differences.

ParameterRequiredDescription
customer_idYesThe customer. Create it first with write_customer if it doesn’t exist
pricing_plan_version_id or quote_template_idYes (one)Never picked for you
document.document_idYesThe signed PDF (docu_...), uploaded with write_documents or in Desk
order_formYesThe contract’s content: parties, term, billing period, currency, price lines, services, limits, clauses, signature and totals
owner_user_id or owner_email, name, contact_idNoAs in create_quote
quote_idNoImport into an existing DRAFT quote that has no schedule yet
custom_field_referencesNoQuote custom fields to store the signing envelope id and the PDF’s SHA-256 in
accept_differencesNoRow ids of differences you accept
modeNovalidate (default) or apply

What it does with the contract:

  1. Currency and billing period must be offered by the plan version, or the call is refused naming what the version offers.
  2. Price lines are matched to what the quote bills, by config id or by product item name. A line becomes a price override only when it differs from the plan price; a contract discount on a list price becomes a discount.
  3. Services that only an add-on grants enable that add-on. Limits that differ from the plan become entitlement overrides.
  4. Payment term in days becomes the quote’s payment term.
  5. Customer details. A DRAFT customer gets the contract’s legal name, registration number, tax id, address and invoice email. A customer in another status is only compared.
  6. Clauses become the quote version’s text, in the contract’s own numbering and words, without Desk’s automatic blocks.
  7. The signed PDF is attached to the version. The version is marked as not needing a signature, because it is already signed.

Every check is a row {id, item, contract, solvimon, status, note} with status match, mismatch, set (filled in), not_storable (such as a notice period Solvimon has no field for) or on_apply (the first invoice and the total contract value, checked once the quote exists). If the first invoice or TCV doesn’t match the contract on apply and you didn’t accept it, everything is rolled back.

Validate an order form
{
"customer_id": "cust_AbD3DqausjOYiMNDZY11F",
"pricing_plan_version_id": "ppve_Zt6yUw2QmK9nXr4VcHb37",
"document": {"document_id": "docu_Pq4nTx8WmK2vRb6YcLd31"},
"order_form": {
"parties": {"customer": {"legal_name": "Example Customer B.V."}, "supplier": {"legal_name": "Acme B.V."}},
"term": {"start_at": "2026-12-01", "initial_term": {"type": "MONTH", "value": 12}, "payment_term_days": 30},
"billing_period": {"type": "YEAR", "value": 1},
"currency": "EUR",
"price_lines": [
{"description": "Platform fee", "amount": "35000.00", "period": "YEAR"},
{"description": "Transaction fee", "percentage": "0.30", "included_volume": "10000000.00", "period": "YEAR", "billed": "ARREARS"}
],
"services": [{"name": "usage metering"}],
"limits": [{"name": "billing entities", "value": "1"}]
},
"mode": "validate"
}

Not done by this tool: creating the customer, ramp quotes, and sending the quote for signature.

Example prompts

  • “Here’s the signed order form for Acme. Turn it into a quote.”
  • “Check this signed contract against the Growth plan and show me where it differs.”
  • “Import Acme’s order form, and accept the difference on the onboarding fee.”
  • “Does the signed order form match what we’d bill in Solvimon?”

Example output

Prompt: “Here’s the signed order form for Docs Example B.V. Turn it into a quote.”

Tool call:

{
"customer_id": "cust_jwDpzo0vA1bAnFCn7D10",
"pricing_plan_version_id": "ppve_VwD6720vzgsII1Csge1c",
"document": {"document_id": "docu_GwDpzo0vA1bLh0Cu7K1i"},
"order_form": {
"parties": {
"customer": {"legal_name": "Docs Example B.V.", "registration_number": "12345678", "tax_id": "NL123456789B01", "address": {"line1": "Voorbeeldstraat 1", "postal_code": "3511 AA", "city": "Utrecht", "country": "NL"}, "invoice_email": "billing@example.com"},
"supplier": {"legal_name": "Solvimon B.V."}
},
"term": {"start_at": "2026-12-01", "initial_term": {"type": "MONTH", "value": 12}, "renewal_term": {"type": "MONTH", "value": 12}, "auto_renewal": true, "notice_period": {"type": "MONTH", "value": 3}, "payment_term_days": 30},
"billing_period": {"type": "YEAR", "value": 1},
"currency": "EUR",
"price_lines": [
{"description": "Platform fee", "amount": "30000.00", "period": "YEAR", "billed": "ADVANCE"},
{"description": "One-off Onboarding fee", "amount": "15000.00", "period": "ONE_OFF", "billed": "ADVANCE"}
],
"limits": [{"name": "billing entities", "value": "1"}],
"clauses": [{"number": "1", "heading": "Term", "text": "This order form starts on the start date and runs for 12 months..."}]
},
"mode": "validate"
}

Response (trimmed):

{
"mode": "validate",
"reconciliation": [
{"id": "price_line_1", "item": "Platform fee", "contract": "30000.00 EUR per YEAR/1", "solvimon": "30000.00 EUR per YEAR/1", "status": "match", "note": "set as an override on pico_TwD6720vzgsK3SCOgR1K; the plan has 3000.00 EUR per MONTH/1"},
{"id": "limit_1", "item": "billing entities", "contract": "1", "solvimon": "1", "status": "match", "note": "set as an entitlement override; the plan grants 3"},
{"id": "customer.tax_id", "item": "Customer tax_id", "contract": "NL123456789B01", "solvimon": null, "status": "set", "note": "apply sets the DRAFT customer's tax_id to the contract's"},
{"id": "tcv", "item": "Total contract value", "contract": "45000.00 EUR", "solvimon": null, "status": "on_apply", "note": "Solvimon's figure is read once the quote exists"},
{"id": "term.notice_period", "item": "Notice period", "contract": "MONTH/3", "solvimon": null, "status": "not_storable", "note": "Solvimon has no notice period field"}
],
"blocking": [],
"overrides": [{"item_name": "Platform fee", "original_price": "3000.00", "new_price": "30000.00", "original_pricing_period": {"type": "MONTH", "value": 1}, "pricing_period": {"type": "YEAR", "value": 1}}],
"entitlement_overrides": [{"feature_reference": "billing_entities", "plan_value": "3", "new_value": "1"}],
"enabled_pricing_ids": ["pric_fwD6720vzgsKrTCTEp1Q"],
"payment_term": {"readable": "30 days after invoice date", "source": "passed"},
"next_steps": [
"Show the reconciliation to the rep; when they agree, call again with mode=apply.",
"Do not send this quote for portal acceptance or signature: the contract is signed already (signing_required is set to false)."
]
}

Claude’s answer: Everything in the order form matches what Solvimon would bill, with nothing blocking. The €30,000 yearly platform fee becomes a price override, the limit of 1 billing entity an entitlement override, and the onboarding fee is enabled at list price; applying also fills in the customer’s VAT and registration numbers. The 3-month notice period has no field in Solvimon, so it is kept in the quote text only. Shall I create the draft quote?