Skip to content

Offer.grant

POST /{namespace}/offers/{offer}/grant

Grant adds an Entitlement to an Offer: a Verb its Customers may call, optionally bounded by a Limit.

Noun
Offer
Mode
do
Event
Offer.granted

Inputs

InputTypeRequiredDescription
offerOfferrequiredThe Offer that grants it.
verbVerbrequiredThe Verb its Customers may call, as Noun.verb.
limitLimitThe Limit that bounds it. Unset: a feature, called as often as the Customer likes.

Outputs

OutputTypeRequiredDescription
entitlementEntitlementrequiredThe new Entitlement, granted by the Offer.
offerOfferrequiredThe Offer, with the Entitlement added.

Effects

  • Emits Offer.granted.
  • Performed by the Product Lead.
  • Two-way: it runs at once, in the try, send and do modes.
  • Every Customer holding the Offer holds the Entitlement on their next call; no Subscription changes.
  • Adds the Verb to the Offer’s row in the pricing table and the Portal’s plan comparison.

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.Offer.grant

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.