Skip to content

Offer.subscribe

POST /{namespace}/offers/{offer}/subscribe

Subscribe accepts a recurring Offer as a Subscription that renews each period until it ends.

Noun
Offer
Mode
do
Event
Offer.subscribed

Inputs

InputTypeRequiredDescription
offerOfferrequiredThe recurring Offer.
quantityintegerSeats or units. Defaults to 1.
promotionCodestringA promotion code the buyer typed; applies its Coupon for the Coupon’s duration.

Outputs

OutputTypeRequiredDescription
subscriptionSubscriptionrequiredThe new Subscription.
offerOfferrequiredThe Offer subscribed to.

Effects

  • Emits Offer.subscribed.
  • Performed by the Billing Specialist.
  • Makes the party a Customer when it is not one yet.
  • Grants the Entitlements the Offer includes.
  • Bills the first period.

Refuses when

CheckErrorFixThen call
The input does not match the schema of the operation.invalid-inputRead the schema of the operation, then send every required field with the right type.Offer.subscribe
The operation is part of an Offer the caller has not accepted or paid for.payment-requiredAccept the Offer named in the response, then retry the call.Offer.accept
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.subscribe
The record is not in a state that allows this Verb, so the call is refused.refusedRead the record, run the Verb that moves it to an allowed state, then retry.Offer.subscribe

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.