merchantEntitlementId: “Standard”, and associates it with the BillingPlan object. The example in Creating Products, defines the merchantEntitlementId: “Video Access”, and associates it with the Product object. Billing plans and products may contain an unlimited number of entitlement IDs.
Use the online magazine site as an example in defining a customer’s access using entitlement IDs. Define one merchantEntitlementId for general access, and name it Standard. Create another merchantEntitlementId for more extensive access to the site, and name it Premium. Then, design your site so that premium customers can access a special multimedia content area in addition to the magazines available to standard subscribers.
To grant an entitlement to an Account, create an AutoBill that includes a Product with the entitlement, or assign the entitlement directly to the Account.
Entitlements granted directly to an Account must be granted and revoked manually; they will not be automatically generated by Subscribe.
Entitlements granted to an Account through an AutoBill (with a Product or Billing Plan holding Entitlements), remain on the Account as long as the AutoBill is in Good Standing status.
The entitlement.fetch* methods will return entitlements granted both ways.
For example, if an AutoBill for an Account includes one Product that offers Video access entitlement, and a second Product that offers Premium entitlement, the effective entitlements available to the Account while the AutoBill object is active, are Video access and Premium.
Parent topic:Working with Entitlements
