This is Documentation for the V1 API

V2 API docmentation is located at developers.getwhiplash.com/

Bundle Items

Get a list of Bundle Items

GET https://www.whiplashmerch.com/api/bundle_itemsView Response
HTTP/1.1 200 OK
[
  {
    "id":12345,
    "parent_item_id":null,
    "item_id":1234,
    "quantity":5,
    "bundle_id":1234,
    "max_per_package"=>1,
    "created_at":"2017-05-18T07:38:27-04:00",
    "updated_at":"2017-05-18T07:38:27-04:00"
  }
]

Parameters

NameTypeDescription
limit Integer The number of results returned. Default is 50
offset/page Integer Page to show (defaults to 1)
order_by String Order (defaults to updated_at DESC
since_id Integer Restrict results to after the specified ID
created_at_min Datetime Show results created after date (format: 2008-01-01 03:00)
created_at_max Datetime Show results created before date (format: 2008-01-01 03:00)
updated_at_min Datetime Show results last updated after date (format: 2008-01-01 03:00)
updated_at_max Datetime Show results last updated before date (format: 2008-01-01 03:00)

Get a single Bundle Item

GET https://www.whiplashmerch.com/api/bundle_items/{bundle-item-id}View Response
HTTP/1.1 200 OK
{
  "id":12345,
  "parent_item_id":null,
  "item_id":1234,
  "quantity":5,
  "bundle_id":1234,
  "max_per_package"=>1,
  "created_at":"2017-05-18T07:38:27-04:00",
  "updated_at":"2017-05-18T07:38:27-04:00"
}

Create a Bundle Item

POST https://www.whiplashmerch.com/api/bundle_itemsView Response
HTTP/1.1 200 OK
{
  "id":12345,
  "parent_item_id":null,
  "item_id":1234,
  "quantity":5,
  "bundle_id":1234,
  "max_per_package"=>1,
  "created_at":"2017-05-18T07:38:27-04:00",
  "updated_at":"2017-05-18T07:38:27-04:00"
}

Parameters

NameTypeDescription
item_id Integer The item this bundle item belongs to (required)
bundle_id Integer The bundle this bundle item belongs to (required)
quantity Integer Number of this bundle item in the bundle (required)
max_per_package Integer The max number of this bundle item per package

Update a Bundle Item

PUT https://www.whiplashmerch.com/api/bundle_items/{bundle-item-id}View Response
HTTP/1.1 204 OK

Parameters

NameTypeDescription
item_id Integer The item this bundle item belongs to
bundle_id Integer The bundle this bundle item belongs to
quantity Integer Number of this bundle item in the bundle
max_per_package Integer The max number of this bundle item per package

Delete a Bundle Item

DELETE https://www.whiplashmerch.com/api/bundle_items/{bundle-item-id}View Response
HTTP/1.1 204 OK