Skip to content

Quote programs: accept, decline, expire

The Quote Verbs accept, decline, expire as MCP do programs, with inputs, result, refusals and an example.

Reference for Quote, one group of Quote programs.

Quote.accept

Accept takes a sent Quote before it expires, turning one-time lines into an Order and recurring lines into a Subscription. Verb page.

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

Emits Quote.accepted.

Inputs

InputTypeRequiredDescription
quoteQuoterequiredThe sent Quote.
partyPartyrequiredThe Contact or Organization accepting, who becomes the Customer.

Returns

OutputTypeRequiredDescription
orderOrderThe Order for the one-time lines, when the Quote has any.
subscriptionSubscriptionThe Subscription for the recurring lines, at each line’s quantity and term.
quoteQuoterequiredThe Quote, now accepted.

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.accept({ quote: 'qt_GZnH5OK100', party: 'party_hmQWaPrAyZ' })"
  }
}

Quote.decline

Decline records the buyer’s refusal of a sent Quote, with the reason in their words. Verb page.

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

Emits Quote.declined.

Inputs

InputTypeRequiredDescription
quoteQuoterequiredThe sent Quote.
reasontextWhy the buyer declined, kept verbatim.

Returns

OutputTypeRequiredDescription
quoteQuoterequiredThe declined 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.decline({ quote: 'qt_GZnH5OK100' })"
  }
}

Quote.expire

Expire closes a sent Quote that reached its validUntil date unaccepted; it never converts afterward. Verb page.

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

Emits Quote.expired.

Inputs

InputTypeRequiredDescription
quoteQuoterequiredThe Quote past its date.

Returns

OutputTypeRequiredDescription
quoteQuoterequiredThe expired 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.expire({ quote: 'qt_GZnH5OK100' })"
  }
}