Coupon/List

List coupons connected to a product group or for the entire brand. To list a specific coupon provide a 'coupon_id'.

Parameters
Parameter Type Required Description
coupon_id string optional Provide a 'coupon_id' to list a specific coupon.
product_group_id string optional Provide to list coupons connected to a specific product group.
GET https://api.recurringstack.com/{format}/Coupon/List
//key,user_key,brand_id,response_format (xml or json),return (clean = return object, leave blank to return raw)
$rstack = new recurringstack('','','','xml','clean'); 

$params = array('coupon_id' => "",'product_group_id' => "");
try { $response = $rstack->request('Coupon/List','GET',$params); } catch(Exception $e) { $error =  $e->getMessage(); echo "Error: $error"; }
print_r($response);
Response

Coupon/Create

Create a new coupon and assign it to specific products. All coupons must be assigned to a product group, meaning they will only work with products from that group.

Parameters
Parameter Type Required Description
product_group_id string required The 'product_group_id' you want this coupon to be available for.
name string required The name of the coupon for your reference.
description string required A short description of the value provided by the coupon.
coupon_code string required A unique code for the coupon customers will use to apply it to a subscription. Should be between 3 and 15 letters or numbers; special characters are not allowed.
coupon_type string required Either 'amount' or 'percent'.
coupon_duration string required Options are 'one-time' (discount will be applied one-time at the start of the subscription) or 'forever' (discount never ends even after the coupon code expires).
discount_amount string required The full dollar amount (either 'amount' or 'percent') of the discount; for example 20.00 or 15.25.
expiration_date string required Provide a date this coupon will expire in the YYYY-MM-DD format.
expiration_time string required Provide a time on the 'expiration_date' this coupon will expire in the HH:MM:SS format.
stackable string required Provide a 'Y' if this coupon can be used with other offers or a 'N' if not.
restricted_products string optional A comma seperated list of products (product_id) in the product group you don't want this coupon used with.
max_use string optional The maximum amount of times this coupon can be utilized for a new subscription.
POST https://api.recurringstack.com/{format}/Coupon/Create
//key,user_key,brand_id,response_format (xml or json),return (clean = return object, leave blank to return raw)
$rstack = new recurringstack('','','','xml','clean'); 

$params = array('product_group_id' => "",'name' => "",'description' => "",'coupon_code' => "",'coupon_type' => "",'coupon_duration' => "",'discount_amount' => "",'expiration_date' => "",'expiration_time' => "",'stackable' => "",'restricted_products' => "",'max_use' => "");
try { $response = $rstack->request('Coupon/Create','POST',$params); } catch(Exception $e) { $error =  $e->getMessage(); echo "Error: $error"; }
print_r($response);
Response

Coupon/Update

Update an existing coupon.

'product_group_id' is required but can't be updated.

Parameters
Parameter Type Required Description
coupon_id string required The 'coupon_id' of the coupon you wish to update.
product_group_id string required The 'product_group_id' you want this coupond to be available for.
name string required The name of the coupon.
description string required A short description of the value provided by the coupon.
coupon_code string required A unique code for the coupon customers will use to apply it to a subscription. Should be between 3 and 15 letters or numbers; special characters are not allowed.
coupon_type string required Either 'amount' or 'percent'.
coupon_duration string required Options are 'one-time' (discount will be applied one-time at the start of the subscription) or 'forever' (discount never ends even after the coupon code expires).
discount_amount string required The full dollar amount (either 'amount' or 'percent') of the discount; for example 20.00 or 15.25.
expiration_date string required Provide a date this coupon will expire in the YYYY-MM-DD format.
expiration_time string required Provide a time on the 'expiration_date' this coupon will expire in the HH:MM:SS format.
stackable string required Provide a 'Y' if this coupon can be used with other offers or a 'N' if not.
restricted_products string optional A comma seperated list of products (product_id) in the product group you don't want this coupon used with.
max_use string optional The maximum amount of times this coupon can be utilized for a new subscription.
PATCH https://api.recurringstack.com/{format}/Coupon/Update
//key,user_key,brand_id,response_format (xml or json),return (clean = return object, leave blank to return raw)
$rstack = new recurringstack('','','','xml','clean'); 

$params = array('coupon_id' => "",'product_group_id' => "",'name' => "",'description' => "",'coupon_code' => "",'coupon_type' => "",'coupon_duration' => "",'discount_amount' => "",'expiration_date' => "",'expiration_time' => "",'stackable' => "",'restricted_products' => "",'max_use' => "");
try { $response = $rstack->request('Coupon/Update','PATCH',$params); } catch(Exception $e) { $error =  $e->getMessage(); echo "Error: $error"; }
print_r($response);
Response

Coupon/Delete

Delete a coupon.

This action is not reversable. Subscriptions currently taking advantge of the discounts offered by the coupon will have those discounts removed.

Parameters
Parameter Type Required Description
coupon_id string required The 'coupon_id' of the coupon you wish to delete.
DELETE https://api.recurringstack.com/{format}/Coupon/Delete
//key,user_key,brand_id,response_format (xml or json),return (clean = return object, leave blank to return raw)
$rstack = new recurringstack('','','','xml','clean'); 

$params = array('coupon_id' => "");
try { $response = $rstack->request('Coupon/Delete','DELETE',$params); } catch(Exception $e) { $error =  $e->getMessage(); echo "Error: $error"; }
print_r($response);
Response

Your content here

Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui, natus temporibus voluptate corporis possimus ab aut cumque.

Homepage

Quick Tips

You may remove all ID or Class names which contain _dm-, they are only used for demonstration.


Boxed Layout

Fluid Layout Remove the .boxed-layout and .centered-layout classes from the body.
Centered Layout Add a class .centered-layout to the body.
Boxed Layout Add a class .boxed-layout to the body.
Boxed Layout with background image

Add background image to the body.

<body class="boxed-layout" style='background-image: url("path_to_img/image.jpg");'>
    ..
    ..
</body>

Or it could be in your own class.

.bg-img {
background-image: url("path_to_img/image.jpg");
}
<body class="boxed-layout bg-img">
    ..
    ..
</body>

Color Schemes

Replace the current Bootstrap CSS and Nifty CSS path with the new path of the CSS color schemes you wish to use.

This is where you can change the color scheme of your app / website.

<head>
    ...
    <title>My Project</title>
    ...

    <!-- STYLESHEETS -->
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--- -->

    <!-- Bootstrap CSS [ REQUIRED ] -->
    <link rel="stylesheet" href="documentation/assets/css/color-schemes/SELECTED-SCEHEMS/bootstrap.min.css">

    <!-- Nifty CSS [ REQUIRED ] -->
    <link rel="stylesheet" href="documentation/assets/css/color-schemes/SELECTED-SCEHEMS/nifty.min.css">

</head>

Header

Sticky header Add a class .hd--sticky to the #root.
Expanded header Add a class .hd--expanded to the #root.
Expanded header with overlapping content. Add a class .overlapping to the #content > .content__header.
Disable rounded header. Add a class .rounded-0 to the #content > .content__header.

Animations

Add the following class to the body to change the animation transition.

Transition function name Class name
In Quart .in-quart
Out Quart .out-quart
In Back .in-back
Out Back .out-back
In Out Back .in-out-back
easeInOutBack .easeInOutBack
steps .steps
jumping .jumping
rubber .rubber
RecurringStack Documentation
RecurringStack Docs
Sign In

Background Images

Add an image to replace the solid background color
Layouts
Layouts
Transitions
Header
Additional Offcanvas New in BS v.5.0

Select the offcanvas placement.

Sidebars
Navigation
Right sidebar
Color Schemes
Light Completely bright color themes.
Dark Completely dark color themes.
Expanded Header
Fair Header
Full Header
Primary Nav
Brand
Tall Header New in v3.0
Scrollbars

Hides native scrollbars and creates custom styleable overlay scrollbars.

Offcanvas Header
Content Here

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sapiente eos nihil earum aliquam quod in dolor, aspernatur obcaecati et at. Dicta, ipsum aut, fugit nam dolore porro non est totam sapiente animi recusandae obcaecati dolorum, rem ullam cumque. Illum quidem reiciendis autem neque excepturi odit est accusantium, facilis provident molestias, dicta obcaecati itaque ducimus fuga iure in distinctio voluptate nesciunt dignissimos rem error a. Expedita officiis nam dolore dolores ea. Soluta repellendus delectus culpa quo. Ea tenetur impedit error quod exercitationem ut ad provident quisquam omnis! Nostrum quasi ex delectus vero, facilis aut recusandae deleniti beatae. Qui velit commodi inventore.