api/v1/customer/manufacturer/swag-shop/products

GET/POST

/api/v1/customer/manufacturer/swag-shop/products

This API method will return a list of items within the swag store.

Request Parameters

Parameter

Value / Type

Required

per_page

INTEGER (Default 50)

false

page

INTEGER (Default 1)

false

manufacturer_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

min_points

INTEGER

false

max_points

INTEGER

false

sort_by

STRING (created / points)

false

sort_direction

STRING (asc / desc)

false

on_wishlist

INTEGER (1)

false

Sample Response

{
  "status": true,
  "max_points": "100",
  "items": [
    {
      "id": "nK8oWGj0zxqELP1A53ak",
      "manufacturer_id": "l6yYk1WOeo7e2b78dD4j",
      "manufacturer_name": "Bobs Market",
      "category_id": "LZWBJx0PmYkEwjGdr2vO",
      "category_name": "New Category",
      "name": "Swag T-Shirt",
      "description": "",
      "upc": "123456789",
    	"quantity": 40,
      "short_description": "",
      "main_image": "http:\/\/controlcenter.ftx\/swag-item\/images\/nK8oWGj0zxqELP1A53ak",
      "images": [
        "http:\/\/controlcenter.ftx\/swag-item\/images\/nK8oWGj0zxqELP1A53ak",
        "http:\/\/controlcenter.ftx\/swag-item\/images\/QD59AxOJm2MenXb14Pw7"
      ],
      "point_value": 100,
      "points_needed": 0,
      "rating": 0,
      "review_count": 0,
      "has_reviewed": 0,
      "has_attributes": 1,
      "max_per_purchase": 1,
      "max_per_day": 1,
      "total_daily_purchases": 0,
      "has_purchased": 0,
      "is_on_wishlist": 0,
      "expiration_date": "2018-12-01 02:09:20",
      "expiration_value": 2,
      "expiration_type": 1,
      "has_age_requirement": 1,
      "age_required": 25,
      "ship_type": 1,
      "created_at": "2018-08-28 10:00:27",
      "updated_at": "2018-08-28 10:00:27"
    }
  ]
}
{
  "status": false,
  "message": "Invalid Store Provided - Not in your list"
}

Expiration Types:
0 = hours
1 = days
2 = weeks
3 = months