GET/POST
/api/v1/customer/swag-shop/get-discount-products
This API method will return a list of discount items within the swag store.
Request Parameters
Parameter | Value / Type | Required |
|---|---|---|
store_id | STRING | false |
category_list | STRING / ARRAY | false |
tag_list | STRING / ARRAY | false |
general_search | STRING | false |
category_search | STRING | false |
tag_search | STRING | false |
Sample Response
{
"status": true,
"items": [
{
"id": "QD59AxOJm2MenXb14Pw7",
"account_locked": false,
"account_banned": false,
"store_id": "l6yYk1WOeo7e2b78dD4j",
"store_name": "Smokers Choice USA",
"category_id": "dnbPV7yRzv3EWaX1GKZv",
"category_name": "Gift Cards",
"name": "25 Dollar Gift Card",
"description": "",
"upc": "11",
"quantity": 777,
"short_description": "$25 gift card for any in-store items",
"main_image": "http://controlcenter.ftx/swag-item/images/QD59AxOJm2MenXb14Pw7",
"images": [
"http://controlcenter.ftx/swag-item/images/QD59AxOJm2MenXb14Pw7",
"http://controlcenter.ftx/swag-item/images/dnbPV7yRzv3EWaX1GKZv"
],
"point_value": -29,
"points_needed": 0,
"rating": 0,
"review_count": 0,
"has_reviewed": 0,
"has_attributes": 0,
"max_per_purchase": 100,
"max_per_day": 100,
"total_daily_purchases": 0,
"has_purchased": 0,
"is_on_wishlist": 0,
"is_featured": 0,
"expiration_date": "2020-10-19 07:50:28",
"expiration_value": 2,
"expiration_type": 2,
"has_age_requirement": 0,
"age_required": null,
"ship_type": 1,
"created_at": "2018-08-28 11:48:47",
"updated_at": "2020-10-05 07:50:28",
"isFree": true
}
]
}{
"status": false,
"message": "Invalid Store Provided - Not in your list"
}Expiration Types:
0 = hours
1 = days
2 = weeks
3 = months
