/trial [POST]

Request a free trial code for a member - protected.

For an eligible member, return a short-lived promo code that can be used for a free trial.

Parameters

  • days (numeric) [REQUIRED] - the number of days in the free trial

Response Messages

403 Forbidden

If days is missing or invalid. If the free trial feature is not enabled for the member’s site. If the current member is not eligible for a free trial.

{ "fail" : "Invalid Argument" }

200 OK - success The promo code that can be used to obtain a free trial for this member:

{:promo "XYZ123"}