Commerce
setSpendPolicy
Set Spend Policy
Ask to change the spending limits on the user's wallet.
Arguments
askAbovenumberoptionalAbove this amount the agent asks the user first, every time. In whole currency units. Required when enabling.currencystringoptionalISO currency code for the limits (e.g. USD). Defaults to the wallet's existing currency, or USD.dailyLimitnumberoptionalThe most that may be spent across a whole day, in whole currency units. Required when enabling. A refund does not restore the day's allowance.enabledbooleanrequiredWhether an agent may spend from this wallet at all. False switches it off and keeps the amounts.maxPerOrdernumberoptionalThe most that may be spent on one order, in whole currency units, counting tax, shipping and fees. Required when enabling.
Returns
The registry does not declare a return shape.
Declared limits
askAbove: greater than 0currency: minimum length 3currency: maximum length 3dailyLimit: greater than 0maxPerOrder: greater than 0
Ask for it
The Cloud routes these requests to this verb.
- let you spend up to fifty dollars
- raise my daily limit to two hundred
- stop agent spending
- ask me about anything over twenty
Pair it with
The verbs that finish the job.