David Widaman
posted this on July 20, 2011 10:49 pm
The Topspin V2 Store API is a specialized subset of the V1 Store API designed to build store fronts. The V2 Store API is the backing API behind the current Topspin Store / Spinshop.com sites as well as the V2 Facebook store.
The store is designed around 2 simple operations: Fetch a page of purchase buttons (scoped by tag and page number), and detail a single offer. The store always returns a result for a single artist, and unlike the V1 Store API, it returns only purchase buttons and the associated streaming widget for that purchase button.
The V2 API will not include promotional widgets (streaming players, etc) like the V1 API. In the near future, we will be providing a V2 Promotion API that is designed to return the promotional widget content in the backend.
As a result, the V2 Store API has two methods.
Page form Sample call: Tag "ts_all_products", artist ID 991, page 1:
General Form:
Offset/Limit form Sample call: 10 items from artist ID 991, "tag ts_all_products", starting at offset 0, would be:
General Form:
This call is designed to create a "page" of offers, listing multiple offers. This call returns total pages, current page, total entries, and entries per page as part of its response. Store configuration information is included, as well as top-level order information that can be retrieved via the detail query.
Page Query Response
Detail Query Sample call: Offer ID 59899
General Form:
This call is designed to retrieve all public information about an individual offer. This call returns offer-level attributes, store configuration information, and offer contents.
Detail Query Response
Per-product-type responses have also been documented. These are in the context of the above detail response but are presented at the product level (when digital media preferences are not requested) and the campaign level (when digital media preferences are requested).
Audio Track Product Response
Video Product Response
Image Product Response
File Product Response
Ticket Product Response
Merch Product Response
Membership Product Response
Package Product Response
Digital Package Product Response
Fanpack Product Response