Skip to content

Quote programs: update, delete

The Quote Verbs update, delete as MCP do programs, with inputs, result, refusals and an example.

Reference for Quote, one group of Quote programs.

Quote.update

Changes the given properties of a Quote. Verb page.

Text
do: return await $.Quote.update(input)

Emits Quote.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Quote.
totalmoneyThe quoted total.
validUntildateThe last day it may be accepted.
linesjsonOne line per Offer: quantity, list Price, discount percent, net amount, term, and start, one line per ramp year.
concessionsstring[]Concessions granted, each from the Startup’s fixed concession list, such as a 60-day termination for convenience.
paymentTermsjsonThe collection, terms and purchaseOrder every Invoice from the accepted Quote carries.

Returns

OutputTypeRequiredDescription
quoteQuoterequiredThe Quote.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Quote.update({ id: 'qt_GZnH5OK100', total: { amount: 29, currency: 'USD' } })"
  }
}

Quote.delete

Deletes a Quote: a soft delete that keeps its history, undone by Thing.restore. Verb page.

Text
do: return await $.Quote.delete(input)

Emits Quote.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Quote.

Returns

OutputTypeRequiredDescription
quoteQuoterequiredThe Quote.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Quote.delete({ id: 'qt_GZnH5OK100' })"
  }
}