Helpcenter +918010117117 https://cdn1.storehippo.com/s/573db3149f0d58741f0cc63b/ms.settings/5256837ccc4abf1d39000001/57614ef64256dc6851749879-480x480.png" support@storehippo.com https://www.facebook.com/StoreHippohttps://twitter.com/StoreHippohttps://www.linkedin.com/company/hippoinnovations/https://plus.google.com/+Storehippo/posts
B4,309-10 Spaze iTech Park, Sector 49, Sohna Road, 122001 Gurgaon India

Discounts

(ms.discounts_new)

It contains the discounts provided to the users.



Fields

ValueDescription
name   
Type: string
Required
Name of the discount.
FLAT 100
description   
Type: string
rule_type   
Type: string
Required
Rule type defines whether the discount is product based or order based.
product
amount   
Type: number
Required
Amount of the discount.
100
apply_on   
Type: string
apply_on   
Type: string
enabled   
Type: string
Select the checkbox to enable discounts.
1
advance_settings   
Type: string
Enable the advance settings, if you want to apply conditions to the discount.
1
apply_with   
Type: string
validity   
Type: string
The duration for which the discount will be applicable.
infinite
percetage_bear   
Type: string
number_of_uses   
Type: number
Maximum usage of the discount allowed.
2
start_date   
Type: string
Starting date and time for application of the discount.
2018-04-25T06:48:00.000Z
end_date   
Type: string
Date and time at which the discount expires.
2018-04-30T06:48:00.000Z
seller   
Type: string
Seller for which the discount is applicable.
5ac383106eecb937c95196f3
use_count   
Type: string
Number of times the discount is to be used.
50
substores   
Type: array

Commands (Endpoints)

POST /api/1.1/entity/ms.discounts_new   
Creates a new discount
DEL /api/1.1/entity/ms.discounts_new/{resource_id}   
Deletes a discount
PUT /api/1.1/entity/ms.discounts_new/{resource_id}   
Updates an existing discount
GET /api/1.1/entity/ms.discounts_new/{resource_id}   
Retrieves a single discount
GET /api/1.1/entity/ms.discounts_new   
Retrieves a list of discounts