Setting up Subscription Service

Services are essentially AutoShips with an expiration date; they denote some extra level of access to a site or service. For example, with Amazon, you can opt in and out of a Prime Subscription but can still access Amazon as a whole. When the AutoShip renews, the system pushes the Service’s expiration further out. For more functionality, changing an Associate’s access to certain Platform areas, a developer will have to create custom logic in your Client Extension.

Setting up a Service SKU

Admin: Corporate Admin
Page: Inventory > Inventory Items
URL: [CLIENTID].admin.directscale.com/#/Branding
Permission: ViewInventory()

Set up an inventory item SKU for the Service.

Read more: Inventory Items and Pricing Guide.

Steps specific for Services:

  1. In Corporate Admin, navigate to Inventory > Inventory Items.

  2. Create a new inventory item.

  3. When adding a Price Adjustment, there’s some essential information needed:

    Required fields
    1. For Stores, select the Autoship Store.
    2. For Order Types, select Standard and Autoship. All inventory items need to have Standard selected, and all Subscriptions must have both Standard and Autoship set.
  4. Note your inventory items’ Item ID for later. You can find this in the inventory item’s Item Detail page, as well as in the URL:

    Item ID in Inventory Configuration
    ItemID in URL

    For example, [CLIENTID].corpadmin.directscale.com/Corporate/Inventory/ItemDetail?iid=372

    The Item ID is necessary because it’s how you’ll reference the Database inventory item, so take note of it later in the guide.

    Tip: The ItemID is also the recordnumber in the INV_Inventory table.

Adding Service Data to the Database

Warning: There is currently no Admin page for configuring Services. Changes need to be made in the Database directly using the Data Editor.

Important: Only an experienced SQL developer should use the Data Editor.

A Service pulls data from the following Database tables:

  • CRM_Services - Stores the name of the Service. Without this table, there is no Service to attach anything to.
  • CRM_ServiceItems - Stores much of the data that make Services work. This table provides a connection between a Service and an item. Without this mapping, the system will not create Services for an Associate, nor will they renew.
  • CRM_AssociateServices - Stores which Associates have which Services, as well as the expiration date.

To set up a Service, you will have to edit the CRM_Services and CRM_ServiceItems tables with the Data Editor.

Giving the Service a Name

Edit the CRM_Services table to give the Service a name.

  1. In the Data Editor, search for and select the CRM_Services table.

    Search for and select the CRM_Services table

    Tip: To view the Table Schema, click the icon.

  2. Click the + New Row button to add a new row.

  3. Click the empty field under ServiceName and enter the name of your Service.

    Enter ServiceName
  4. Click the Check mark icon to create the new Service.

    Take note of the recordnumber. This will be used as the ServiceID in the CRM_ServiceItems table.

You can add more rows to create multiple Service offerings.

In the next section, configure the specifics of what this Service does.

One SKU could add one month, another SKU could add a year, to the same Service (this example would require two entries in the CRM_ServiceItems table).

Configuring the Service

Edit the CRM_ServiceItems table and enter the Service details in the necessary fields.

  1. Search for and select the CRM_ServiceItems table.

    Search for and select the CRM_ServiceItems table
  2. Click the + New Row button to add a new row.

  3. Enter data in the following fields:

    Add records
    1. Under ItemID, enter the inventory item’s ItemID. This is the ID you noted in the Setting Up a Service SKU section.

    2. Under ServiceID, enter the recordnumber from the CRM_Services table.

    3. Under ServicePeriod, enter the number of periods for the given ServicePeriodType. For example, if your ServicePeriodType was “Monthly” and you wanted the service to reoccur every two months, you would enter 2 in this field.

    4. Under ServicePeriodType, enter the frequency that correlates with the ServicePeriod.

      • Day = 0
      • Week = 1
      • Month = 2
      • Year = 3

      For example, to have a monthly renewal, enter 1 in ServicePeriod and enter 2 in ServicePeriodType.

    5. Under CreateAutoship, click the checkbox TRUE or FALSE. Do you want to create an AutoShip to auto-renew the Service? If so, select TRUE. Autoship is what charges the Associate. The Service is a date to apply business logic to whatever happens at expiration. The system creates the AutoShip with the ServicePeriod based on ServicePeriodType, so a MONTHLY interval will create a monthly AutoShip.

    6. For GracePeriod, the system does nothing with this data by default. Use if you want to provide the Associate more time past the expiration date before considered expired.

    7. Under YearlyRenewal, leave the checkbox unchecked. YearlyRenewal provides a distinction between a Service Subscription and a Membership Subscription.

      • When set to FALSE (unchecked), you have a Service Subscription.
      • When set to TRUE (checked), you have a Membership Subscription.
  4. Click the Check mark icon to save the table.

The preceding data entry enables the following features:

  • Enables a Service with the sale of an inventory item.
  • Enables AutoShip creation with the sale of an inventory item.
  • Sets up a grace period for a Service item.
Was this article helpful?
0 out of 0 found this helpful
Previous Next

Comments

0 comments

Please sign in to leave a comment.