request_standing_approval
Ask a person once to permit repeated actions within fixed limits and duration, so each use can be authorized by a signed reusable approval.
Instructions
Ask a person once to allow the same kind of action within fixed limits, up to max_uses times, for up to days days. Then call get_approval, and use_standing_approval for each action. For one action, use request_approval. Use sparingly: the person sees every limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aud | Yes | Who will act on each use. | |
| days | Yes | How many days it lasts (1 to 30). | |
| vary | Yes | Params that may change, with limits: integers {"amount_cents": {"min": 1, "max": 2000}} (both required) or strings {"memo": {"one_of": ["coffee", "lunch"]}}. | |
| fixed | Yes | Params that must be exactly these values every time, e.g. {"to": "ACME Ltd", "currency": "EUR"}. | |
| for_type | Yes | The action type each use will have, e.g. "payment". | |
| max_uses | Yes | How many times it may be used (1 to 1000). |