Skip to content

Commission programs: pay

The Commission Verbs pay as MCP do programs, with inputs, result, refusals and an example.

Reference for Commission, one group of Commission programs.

Commission.pay

Pay transfers a Commission’s earned, unpaid amount to the Partner’s connected account through Stripe. Verb page.

Text
do: return await $.Commission.pay(input)

Emits Commission.paid.

Inputs

InputTypeRequiredDescription
commissionCommissionrequiredThe Commission with an amount past its clawback window.

Returns

OutputTypeRequiredDescription
commissionCommissionrequiredThe Commission, its paid raised by the transfer.
transactionTransactionrequiredThe transfer as the rail reports it.

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 $.Commission.pay({ commission: 'commission_oYhMioUeCH' })"
  }
}