{ "opencollection": "1.0.0", "info": { "name": "7digital Artists Basket API", "version": "1.2" }, "request": { "auth": { "type": "apikey", "key": "oauth_consumer_key", "value": "{{oauth_consumer_key}}", "placement": "query" } }, "items": [ { "info": { "name": "Basket", "type": "folder" }, "items": [ { "info": { "name": "7digital Get Basket", "type": "http" }, "http": { "method": "GET", "url": "https://api.7digital.com/1.2/basket", "params": [ { "name": "basketId", "value": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "type": "query", "description": "7digital basket id." } ] }, "docs": "Get the current contents of a basket." }, { "info": { "name": "7digital Create Basket", "type": "http" }, "http": { "method": "GET", "url": "https://api.7digital.com/1.2/basket/create" }, "docs": "Create a new basket for a session or user." }, { "info": { "name": "7digital Add Basket Item", "type": "http" }, "http": { "method": "GET", "url": "https://api.7digital.com/1.2/basket/addItem", "params": [ { "name": "basketId", "value": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "type": "query", "description": "7digital basket id." }, { "name": "releaseId", "value": "11700062", "type": "query", "description": "Release id to add." }, { "name": "trackId", "value": "123456", "type": "query", "description": "Track id to add." } ] }, "docs": "Add a track or release to a basket." }, { "info": { "name": "7digital Remove Basket Item", "type": "http" }, "http": { "method": "GET", "url": "https://api.7digital.com/1.2/basket/removeItem", "params": [ { "name": "basketId", "value": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "type": "query", "description": "7digital basket id." }, { "name": "itemId", "value": "item-789012", "type": "query", "description": "Basket item id to remove." } ] }, "docs": "Remove a track or release from a basket." }, { "info": { "name": "7digital Apply Basket Voucher", "type": "http" }, "http": { "method": "POST", "url": "https://api.7digital.com/1.2/basket/applyVoucher", "params": [ { "name": "basketId", "value": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "type": "query", "description": "7digital basket id." } ], "body": { "type": "form-urlencoded", "data": [ { "name": "voucherCode", "value": "" } ] }, "auth": { "type": "apikey", "key": "oauth_consumer_key", "value": "{{oauth_consumer_key}}", "placement": "query" } }, "docs": "Apply a discount voucher to a basket." }, { "info": { "name": "7digital Add Priced Basket Item", "type": "http" }, "http": { "method": "GET", "url": "https://api.7digital.com/1.2/basket/addpriceditem", "params": [ { "name": "basketId", "value": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "type": "query", "description": "7digital basket id." }, { "name": "releaseId", "value": "11700062", "type": "query", "description": "Release id to add." }, { "name": "price", "value": "999", "type": "query", "description": "Price to apply to the item (in minor units)." } ], "auth": { "type": "apikey", "key": "oauth_consumer_key", "value": "{{oauth_consumer_key}}", "placement": "query" } }, "docs": "Add an item with a specific price to a basket (partner pricing flow)." }, { "info": { "name": "7digital Get Basket PayPal Url", "type": "http" }, "http": { "method": "GET", "url": "https://api.7digital.com/1.2/basket/paypalurl", "params": [ { "name": "basketId", "value": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "type": "query", "description": "7digital basket id." } ] }, "docs": "Generate a PayPal checkout URL for a basket." }, { "info": { "name": "7digital Complete Basket PayPal Purchase", "type": "http" }, "http": { "method": "POST", "url": "https://api.7digital.com/1.2/basket/completepaypalpurchase", "params": [ { "name": "basketId", "value": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "type": "query", "description": "7digital basket id." } ], "body": { "type": "form-urlencoded", "data": [ { "name": "payerId", "value": "" }, { "name": "token", "value": "" } ] }, "auth": { "type": "apikey", "key": "oauth_consumer_key", "value": "{{oauth_consumer_key}}", "placement": "query" } }, "docs": "Complete a PayPal purchase after the user has authorised payment." } ] } ], "bundled": true }