discounts:create
discounts family
Mint a storefront discount code as a scoped coupon row — the workspace is the attested caller, never a body field
- Effect
- ask
- Awaits an outcome — the call returns the response below.
- Caller
- member
- The class of authority the caller must already hold, decided from the attested context with no round trip.
- Cost
- free
- What one call costs, so you can budget before acting.
- Reversible
- yes
- The effect can be undone by a later call.
- Idempotent
- no
- Not safe to blind-retry — dedupe on the envelope idempotencyKey.