The cart API is used to manipulate the user’s cart. The cart API is an OAuth-based service–as such, it expects that the proper OAuth tokens are sent to it.
GET /cart/1/
POST /cart/1/
PUT /cart/1/
PUT /cart/1/
DELETE /cart/1/
DELETE /cart/1/
View the cart:
GET http://api.beatport.com/cart/1/?sourceType=store
Add two items:
POST http://api.beatport.com/cart/1/?sourceType=store&items=[{"id":700000, "type":"track", "audioFormat":"mp3"}, {"id":70001, "type":"release", "audioFormat":"wav"}]
Change the audio format of everything to mp3:
PUT http://api.beatport.com/cart/1/?audioFormat=mp3&sourceType=store
Change the audio format of a track to aiff:
PUT http://api.beatport.com/cart/1/?sourceType=store&items=[{"id":700000, "type":"track", "audioFormat":"aiff"}]
Delete an item:
DELETE http://api.beatport.com/cart/1/?sourceType=store&items=[{"id":70001, "type":"release"}]
Empty the cart:
DELETE http://api.beatport.com/cart/1/?sourceType=store