{"info":{"_postman_id":"6be0b06b-f9ff-4501-ae16-b09763380ff0","name":"WithWine Website API Public Documentation","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"3065679","collectionId":"6be0b06b-f9ff-4501-ae16-b09763380ff0","publishedId":"TzCQc7Ut","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-04-06T00:41:44.000Z"},"item":[{"name":"Authorization","item":[],"id":"43eed26e-84fd-44b1-b743-fe78c4930b7f","description":"<p>Authentication and authorization API documentation available at <a href>https://account.docs.withwine.com</a></p>\n<p>All API requests require an <code>Authorization</code> header.</p>\n<p>Authenticated requests should use a <code>bearer</code> prefix for the header value followed by the JSON web token (JWT) received from one of the supported Authorization flows described in the link above. eg: <code>Authorization: bearer {token}</code></p>\n<p>Unauthenticated requests should use a <code>clientid</code> prefix for the header value followed by your API clientid. eg: <code>Authorization: clientid {clientid}</code></p>\n","_postman_id":"43eed26e-84fd-44b1-b743-fe78c4930b7f"},{"name":"Clubs","item":[{"name":"List Clubs","event":[{"listen":"test","script":{"id":"da1421b0-2831-426f-bed6-6022a1423456","exec":["pm.test(\"Clubs are returned\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.length).to.be.greaterThan(0, 'Clubs are expected to exist for testing purposes');","    ","    var clubWithOptionsAndNoDiscount = jsonData.filter(c => c.options.length > 0 && c.discountPercentageBenefit === 0 && c.selectionMethod !== \"RecurringOrder\");","    pm.expect(clubWithOptionsAndNoDiscount.length).to.be.greaterThan(0, 'At least one club is expected to have options for testing purposes');","    pm.environment.set('ClubId0', clubWithOptionsAndNoDiscount[0].id);","    pm.environment.set('ClubId0OptionId0', clubWithOptionsAndNoDiscount[0].options[0].id);","    ","    var clubWithDiscount = jsonData.filter(c => c.discountPercentageBenefit > 0);","    pm.expect(clubWithDiscount.length).to.be.greaterThan(0, 'At least one club is expected to have a discount');","","    pm.environment.set('ClubWithDiscountId0', clubWithDiscount[0].id);","    ","    var recurringOrderClub = jsonData.filter(c => c.selectionMethod === \"RecurringOrder\" && c.productOptions.length > 0 && c.bottleQuantity === null && c.chargeInterval === null && c.bottleQuantityOptions.length > 0 && c.chargeIntervalOptions.length > 0);","    pm.expect(recurringOrderClub.length).to.be.greaterThan(0, 'At least one club is expected to be a recurring order club with product options');","    ","    var recurringOrderProductOption = recurringOrderClub[0].productOptions.filter(o => o.maxSelectableQuantity === null || o.maxSelectableQuantity === 0);","    pm.expect(recurringOrderProductOption.length).to.be.greaterThan(1, 'At least two recurring order product option must have no maximum selectable quantity');","    ","    pm.environment.set('RecurringOrderClubId0', recurringOrderClub[0].id);","    pm.environment.set('RecurringOrderClubId0Product0', recurringOrderProductOption[0].productId);","    pm.environment.set('RecurringOrderClubId0Product1', recurringOrderProductOption[1].productId);","    pm.environment.set('RecurringOrderClubId0ChargeInterval0', recurringOrderClub[0].chargeIntervalOptions[0]);","    pm.environment.set('RecurringOrderClubId0BottleQuantity0', recurringOrderClub[0].bottleQuantityOptions[0]);","});"],"type":"text/javascript"}}],"id":"4d12fc95-d873-4e6d-842d-03fb230f1e4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://secure.withwine.com/api/club/clubs/?id={{WineryBrandId}}","urlObject":{"protocol":"https","path":["api","club","clubs",""],"host":["secure","withwine","com"],"query":[{"key":"id","value":"{{WineryBrandId}}"}],"variable":[]}},"response":[],"_postman_id":"4d12fc95-d873-4e6d-842d-03fb230f1e4c"},{"name":"List Club Memberships for Current User","event":[{"listen":"test","script":{"id":"da1421b0-2831-426f-bed6-6022a1423456","exec":[""],"type":"text/javascript"}}],"id":"f790736e-30f7-4b08-aa98-289a7d52edae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://secure.withwine.com/api/club/clubmemberships/?brandId={{WineryBrandId}}","urlObject":{"protocol":"https","path":["api","club","clubmemberships",""],"host":["secure","withwine","com"],"query":[{"key":"brandId","value":"{{WineryBrandId}}"}],"variable":[]}},"response":[],"_postman_id":"f790736e-30f7-4b08-aa98-289a7d52edae"}],"id":"e333d7de-575d-477a-b289-305110f4e71c","_postman_id":"e333d7de-575d-477a-b289-305110f4e71c","description":""},{"name":"TastingSession","item":[{"name":"Start Tasting Session","event":[{"listen":"test","script":{"id":"d79878fc-4057-40f4-a6c6-2c2493316fe9","exec":["","pm.test(\"Response contains session key\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.sessionKey.length).to.be.greaterThan(0);","    ","    pm.environment.set(\"TastingSessionKey\", jsonData.sessionKey);","});","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"9c474c07-63c2-431d-9102-350c571cc0e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"DateOfBirth","value":"","type":"text","disabled":true},{"key":"ProductListId","value":"","type":"text","disabled":true},{"key":"DestinationId","value":"{{DestinationId0}}","type":"text"}]},"url":"https://secure.withwine.com/api/tastingsession/start","description":"<p>Initializes a tasting session and provides a session key that can be used for tries, likes and finalizing/completing the tasting session</p>\n","urlObject":{"protocol":"https","path":["api","tastingsession","start"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9c474c07-63c2-431d-9102-350c571cc0e2"},{"name":"Add Try To Tasting Session","id":"97cef814-466d-45b2-8628-e679d2c5b06d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Id","value":"{{ProductId0}}","type":"text"},{"key":"SessionKey","value":"{{TastingSessionKey}}","type":"text"}]},"url":"https://secure.withwine.com/api/tastingsession/taste","description":"<p>Initializes a tasting session and provides a session key that can be used for tries, likes and finalizing/completing the tasting session</p>\n","urlObject":{"protocol":"https","path":["api","tastingsession","taste"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"97cef814-466d-45b2-8628-e679d2c5b06d"},{"name":"Add Like To Tasting Session","id":"06186d6e-4076-47ed-96c4-cdeb567f55e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Id","value":"{{ProductId1}}","type":"text"},{"key":"SessionKey","value":"{{TastingSessionKey}}","type":"text"}]},"url":"https://secure.withwine.com/api/tastingsession/like","description":"<p>Initializes a tasting session and provides a session key that can be used for tries, likes and finalizing/completing the tasting session</p>\n","urlObject":{"protocol":"https","path":["api","tastingsession","like"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"06186d6e-4076-47ed-96c4-cdeb567f55e7"},{"name":"Add Note To Tasting Session","id":"bb2bb0fa-dc69-45dd-b32b-364473cbed54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Id","value":"{{ProductId2}}","type":"text"},{"key":"SessionKey","value":"{{TastingSessionKey}}","type":"text"},{"key":"Note","value":"Love this one!","type":"text"}]},"url":"https://secure.withwine.com/api/tastingsession/note","description":"<p>Initializes a tasting session and provides a session key that can be used for tries, likes and finalizing/completing the tasting session</p>\n","urlObject":{"protocol":"https","path":["api","tastingsession","note"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bb2bb0fa-dc69-45dd-b32b-364473cbed54"},{"name":"Remove Try From Tasting Session","id":"8e03e620-128a-4ade-a22f-bc6ca91e1c09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[{"key":"Id","value":"{{ProductId0}}","type":"text"},{"key":"SessionKey","value":"{{TastingSessionKey}}","type":"text"}]},"url":"https://secure.withwine.com/api/tastingsession/taste","description":"<p>Initializes a tasting session and provides a session key that can be used for tries, likes and finalizing/completing the tasting session</p>\n","urlObject":{"protocol":"https","path":["api","tastingsession","taste"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e03e620-128a-4ade-a22f-bc6ca91e1c09"},{"name":"Remove Like From Tasting Session","id":"8336c96c-1214-48d4-9b42-85cfdde5cb2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[{"key":"Id","value":"{{ProductId1}}","type":"text"},{"key":"SessionKey","value":"{{TastingSessionKey}}","type":"text"}]},"url":"https://secure.withwine.com/api/tastingsession/like","description":"<p>Initializes a tasting session and provides a session key that can be used for tries, likes and finalizing/completing the tasting session</p>\n","urlObject":{"protocol":"https","path":["api","tastingsession","like"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8336c96c-1214-48d4-9b42-85cfdde5cb2f"},{"name":"Get Tasting Session","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"e6445197-e55f-4443-8d4b-6cc7abf32b87"}}],"id":"129625d0-7613-449a-8aaa-ddfe1ecf7214","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://secure.withwine.com/api/tastingsession/current?SessionKey={{TastingSessionKey}}","description":"<p>Initializes a tasting session and provides a session key that can be used for tries, likes and finalizing/completing the tasting session</p>\n","urlObject":{"protocol":"https","path":["api","tastingsession","current"],"host":["secure","withwine","com"],"query":[{"key":"SessionKey","value":"{{TastingSessionKey}}"}],"variable":[]}},"response":[],"_postman_id":"129625d0-7613-449a-8aaa-ddfe1ecf7214"},{"name":"Complete Tasting Session","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"1f96019a-77f1-406f-876d-4a3af7fed582"}}],"id":"1e163f0d-dd2b-4294-b91e-bc47ffd18fbf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Email","value":"{{NewCustomerEmail}}","type":"text"},{"key":"FirstName","value":"{{NewCustomerFirstName}}","description":"<p>optional</p>\n","type":"text"},{"key":"LastName","value":"{{NewCustomerLastName}}","description":"<p>optional</p>\n","type":"text"},{"key":"AcceptTermsAndConditions","value":"true","type":"text"},{"key":"BrandId","value":"{{WineryBrandId}}","type":"text"},{"key":"SessionKey","value":"{{TastingSessionKey}}","type":"text"},{"key":"Follow","value":"true","type":"text"}]},"url":"https://secure.withwine.com/api/tastingsession/end","description":"<p>Initializes a tasting session and provides a session key that can be used for tries, likes and finalizing/completing the tasting session</p>\n","urlObject":{"protocol":"https","path":["api","tastingsession","end"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e163f0d-dd2b-4294-b91e-bc47ffd18fbf"},{"name":"Save Entire Session","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"8de4373e-5045-4b99-b997-03d79826be90"}}],"id":"1688efd6-c300-4927-a1aa-53e9960c0402","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"BrandId","value":"{{WineryBrandId}}","type":"text"},{"key":"DateOfBirth","value":"1980-05-05","type":"text","disabled":true},{"key":"ProductListId","value":"","type":"text","disabled":true},{"key":"DestinationId","value":"{{DestinationId0}}","type":"text"},{"key":"Email","value":"{{NewCustomerEmail}}","type":"text"},{"key":"FirstName","value":"{{NewCustomerFirstName}}","description":"<p>Optional</p>\n","type":"text"},{"key":"LastName","value":"{{NewCustomerLastName}}","description":"<p>Optional</p>\n","type":"text"},{"key":"AcceptTermsAndConditions","value":"true","type":"text"},{"key":"Follow","value":"true","type":"text"},{"key":"TriedProductIds[0]","value":"{{ProductId0}}","type":"text"},{"key":"LikedProductIds[0]","value":"{{ProductId1}}","type":"text"},{"key":"LikedProductIds[1]","value":"{{ProductId2}}","type":"text"},{"key":"Notes[0].ProductId","value":"{{ProductId0}}","type":"text"},{"key":"Notes[0].Note","value":"Pretty nice but not my favourite today","type":"text"}]},"url":"https://secure.withwine.com/api/tastingsession/full","description":"<p>Initializes a tasting session and provides a session key that can be used for tries, likes and finalizing/completing the tasting session</p>\n","urlObject":{"protocol":"https","path":["api","tastingsession","full"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1688efd6-c300-4927-a1aa-53e9960c0402"},{"name":"Save Entire Session Without Email","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","id":"08e5405b-9d06-4a4f-9807-24322fc89c17"}}],"id":"b761ac51-2ca7-445b-8ce2-7a90bd9400ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"BrandId","value":"{{WineryBrandId}}","type":"text"},{"key":"DateOfBirth","value":"","type":"text","disabled":true},{"key":"ProductListId","value":"","type":"text","disabled":true},{"key":"DestinationId","value":"{{DestinationId0}}","type":"text"},{"key":"Email","value":"","type":"text","disabled":true},{"key":"AcceptTermsAndConditions","value":"","type":"text","disabled":true},{"key":"Follow","value":"true","type":"text"},{"key":"TriedProductIds[0]","value":"{{ProductId0}}","type":"text"},{"key":"LikedProductIds[0]","value":"{{ProductId1}}","type":"text"},{"key":"LikedProductIds[1]","value":"{{ProductId2}}","type":"text"}]},"url":"https://secure.withwine.com/api/tastingsession/full","description":"<p>Initializes a tasting session and provides a session key that can be used for tries, likes and finalizing/completing the tasting session</p>\n","urlObject":{"protocol":"https","path":["api","tastingsession","full"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b761ac51-2ca7-445b-8ce2-7a90bd9400ad"}],"id":"79425485-3bf0-41e5-a722-295581957fe3","_postman_id":"79425485-3bf0-41e5-a722-295581957fe3","description":""},{"name":"Winery Details (Brand)","item":[{"name":"Get Winery (Brand)","event":[{"listen":"test","script":{"id":"68869cd9-8cca-454f-b1aa-5709b186f693","exec":["_ = require('lodash');","","pm.test(\"A brand is returned\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.id).to.be.greaterThan(0);","    ","    var uniqueStockLocationIds = _.uniqBy(jsonData.destinations.map(d => d.stockLocationId), sl => sl);","    pm.expect(uniqueStockLocationIds.length).to.be.greaterThan(1, '2 or more stock locations required on cellar doors for testing purposes');","    ","    pm.environment.set('StockLocationId0', uniqueStockLocationIds[0]);","    pm.environment.set('StockLocationId1', uniqueStockLocationIds[1]);","    ","    pm.environment.set('DestinationId0', jsonData.destinations[0].id);","});"],"type":"text/javascript"}}],"id":"d65490ae-aa65-4fc1-97dc-53faceb17062","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://secure.withwine.com/api/brand/brand?id={{WineryBrandId}}","urlObject":{"protocol":"https","path":["api","brand","brand"],"host":["secure","withwine","com"],"query":[{"key":"id","value":"{{WineryBrandId}}"},{"disabled":true,"description":{"content":"<p>Default: true. Load the brand's destinations/venues along with the brand.</p>\n","type":"text/plain"},"key":"includeDestinations","value":"true"},{"disabled":true,"description":{"content":"<p>Default: false. Load the brand's clubs along with the brand. Passing true for this parameter may result in a large response depending on the club configuration and use of products.</p>\n","type":"text/plain"},"key":"includeClubs","value":"false"}],"variable":[]}},"response":[],"_postman_id":"d65490ae-aa65-4fc1-97dc-53faceb17062"}],"id":"afb5da7c-30b5-4a4f-b396-d94c22aeb5b7","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"30e8d0d5-23c3-44ed-97df-08dd6cbfc9a7"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"ca53c70b-5ade-49d0-9040-b4088c294b97"}}],"_postman_id":"afb5da7c-30b5-4a4f-b396-d94c22aeb5b7","description":""},{"name":"Mailing List","item":[{"name":"Subscribe Current User to Mailing List (Follow Brand)","id":"ebf34472-608b-4fd2-8250-26c99456839f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"ID","value":"{{WineryBrandId}}","description":"<p>Brand ID</p>\n","type":"text"},{"key":"Tag","value":"{{CustomerMailingListConversionTag}}","description":"<p>Optional. This tag must be saved in the <code>Allowed Customer Tags via Public API</code> setting in WithWine's Website settings</p>\n","type":"text","uuid":"df9e6017-2d16-4648-aacc-c2bc233473f9"}]},"url":"https://secure.withwine.com/api/brand/follow","urlObject":{"protocol":"https","path":["api","brand","follow"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ebf34472-608b-4fd2-8250-26c99456839f"},{"name":"Subscribe to Mailing List By Email (Follow Brand by Email)","id":"97e00e64-4c85-4d48-8dee-60e3ef4d7e8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Email","value":"{{NewCustomerEmail}}","type":"text"},{"key":"BrandId","value":"{{WineryBrandId}}","type":"text"},{"key":"FirstName","value":"{{NewCustomerFirstName}}","description":"<p>Optional.</p>\n","type":"text"},{"key":"LastName","value":"{{NewCustomerLastName}}","description":"<p>Optional.</p>\n","type":"text"},{"key":"Tag","value":"{{CustomerMailingListConversionTag}}","description":"<p>Optional. This tag must be saved in the <code>Allowed Customer Tags via Public API</code> setting in WithWine's Website settings</p>\n","type":"text","uuid":"545f140e-7d8b-432c-b977-3bd26a8ad4ee"}]},"url":"https://secure.withwine.com/api/brand/follow/email","urlObject":{"protocol":"https","path":["api","brand","follow","email"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"97e00e64-4c85-4d48-8dee-60e3ef4d7e8f"},{"name":"Unsubscribe Current User from Mailing List (Unfollow Brand)","id":"cbe50b4f-68c2-4261-9a91-287635d8f494","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"https://secure.withwine.com/api/brand/follow?Id={{WineryBrandId}}","urlObject":{"protocol":"https","path":["api","brand","follow"],"host":["secure","withwine","com"],"query":[{"description":{"content":"<p>Brand ID</p>\n","type":"text/plain"},"key":"Id","value":"{{WineryBrandId}}"}],"variable":[]}},"response":[],"_postman_id":"cbe50b4f-68c2-4261-9a91-287635d8f494"}],"id":"a66e3bf4-a666-4a1c-bf9f-89fd28c21cea","_postman_id":"a66e3bf4-a666-4a1c-bf9f-89fd28c21cea","description":""},{"name":"Products","item":[{"name":"Tried / Liked","item":[],"id":"a4f4a689-05b3-45c1-87f9-f203f3815ce6","_postman_id":"a4f4a689-05b3-45c1-87f9-f203f3815ce6","description":""},{"name":"Get Products","event":[{"listen":"test","script":{"id":"f5cd3851-a6d8-4cc4-b27c-6c2dadf5078e","exec":["pm.test(\"Body has results\", function () {","    var json = pm.response.json();","    pm.expect(json.data.length).to.be.greaterThan(0, 'Results are expected to have products');","    pm.expect(json.data.length).to.be.greaterThan(2, 'Results are expected to have at least 3 products for testing purposes');","    ","    pm.environment.set('ProductId0', json.data[0].id);","    pm.environment.set('ProductId0.DozenPrice', json.data[0].dozenPrice);","    pm.environment.set('ProductId1', json.data[1].id);","    pm.environment.set('ProductId2', json.data[2].id);","    ","    ","});","","pm.test(\"Results have paid options\", function () {","    var json = pm.response.json();","    ","    var productsWithPaidOptions = json.data.filter(p => p.productOptions.length > 0 && p.productOptions[0].optionProduct !== null);","    pm.expect(productsWithPaidOptions.length).to.be.greaterThan(0, 'Results are expected to have products with paid options');","    ","    pm.environment.set('ProductId_WithPaidOptions0', productsWithPaidOptions[0].id);","    pm.environment.set('ProductId_WithPaidOptions0.Price', productsWithPaidOptions[0].singlePrice);","    ","    pm.environment.set('ProductId_WithPaidOptions0.Option0', productsWithPaidOptions[0].productOptions[0].optionProductId);","    pm.environment.set('ProductId_WithPaidOptions0.Option0.Price', productsWithPaidOptions[0].productOptions[0].optionProduct.singlePrice);","});","","pm.test(\"Results have free/unpaid options\", function () {","    var json = pm.response.json();","","    var productsWithFreeOptions = json.data.filter(p => p.productOptions.length > 0 && p.productOptions[0].optionProduct === null);","    pm.expect(productsWithFreeOptions.length).to.be.greaterThan(0, 'Results are expected to have products with free options');","    ","    pm.environment.set('ProductId_WithFreeOptions0', productsWithFreeOptions[0].id);","    pm.environment.set('ProductId_WithFreeOptions0.Price', productsWithFreeOptions[0].singlePrice);","","    pm.environment.set('ProductId_WithFreeOptions0.Option0.Name', productsWithFreeOptions[0].productOptions[0].name);","});"],"type":"text/javascript","packages":{}}}],"id":"46d1c649-4ddc-43e0-96f8-f446e5741069","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://secure.withwine.com/api/product/products?id={{WineryBrandId}}&includeWines=true&includeMixes=true&includeOtherProducts=true&availableToBuyOnly=true","urlObject":{"protocol":"https","path":["api","product","products"],"host":["secure","withwine","com"],"query":[{"description":{"content":"<p>Brand Id</p>\n","type":"text/plain"},"key":"id","value":"{{WineryBrandId}}"},{"key":"includeWines","value":"true"},{"key":"includeMixes","value":"true"},{"key":"includeOtherProducts","value":"true"},{"disabled":true,"key":"searchTerms","value":""},{"disabled":true,"description":{"content":"<p>RedWine, WhiteWine, Champagne, FortifiedWine, Other, Cider</p>\n","type":"text/plain"},"key":"wineType","value":""},{"disabled":true,"key":"varietyId","value":""},{"disabled":true,"description":{"content":"<p>Includes products in this list that are options for another product. The default is false.</p>\n","type":"text/plain"},"key":"includeProductsThatAreChildOptions","value":"false"},{"key":"availableToBuyOnly","value":"true"},{"disabled":true,"description":{"content":"<p>A comma-delimited list of product IDs</p>\n","type":"text/plain"},"key":"productIds","value":"1,2,3,4"},{"disabled":true,"description":{"content":"<p>The channel the products will be used in. Eg: Pos, Website, Club, Manual. The Website channel is considered a public channel and ecommerce availability will be enforced. Other channels require sufficient user access.</p>\n","type":"text/plain"},"key":"channel","value":"Website"}],"variable":[]}},"response":[{"id":"610733db-e006-4fe1-aad5-549672d24179","name":"Products","originalRequest":{"method":"GET","header":[{"key":"authorization","value":"clientid bimbadgen-26-xuoV5yb09UWfejTgaGobDA","type":"text"}],"url":{"raw":"https://secure.withwine.com/api/wine/products?page=1","protocol":"https","host":["secure","withwine","com"],"path":["api","wine","products"],"query":[{"key":"id","value":"101","disabled":true},{"key":"includeWines","value":"true","disabled":true},{"key":"includeMixes","value":"true","disabled":true},{"key":"searchTerms","value":"","disabled":true},{"key":"wineType","value":"","description":"RedWine, WhiteWine, Champagne, FortifiedWine, Other, Cider","disabled":true},{"key":"varietyId","value":"","disabled":true},{"key":"customerEmail","value":"{{LongTermCustomerEmailUriEncoded}}","disabled":true},{"key":"includeProductsThatAreChildOptions","value":"false","description":"Includes products in this list that are options for another product. The default is false.","disabled":true},{"key":"page","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 06 Nov 2019 09:11:29 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"70"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Content-Security-Policy","value":"frame-ancestors 'self' secure.withwine.com"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"Set-Cookie","value":"LifeWithWine=; expires=Tue, 12-Oct-1999 00:00:00 GMT; path=/; HttpOnly"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"{\n    \"currentPage\": 1,\n    \"pageCount\": 0,\n    \"pageSize\": 20,\n    \"totalCount\": 0,\n    \"data\": []\n}"}],"_postman_id":"46d1c649-4ddc-43e0-96f8-f446e5741069"},{"name":"Get product","id":"48af4f5b-1d36-4484-ace7-02c751e7d545","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://secure.withwine.com/api/product/product?id={{ProductId0}}","urlObject":{"protocol":"https","path":["api","product","product"],"host":["secure","withwine","com"],"query":[{"key":"id","value":"{{ProductId0}}"}],"variable":[]}},"response":[],"_postman_id":"48af4f5b-1d36-4484-ace7-02c751e7d545"},{"name":"Get Likes","id":"7c40e20b-46c6-47fd-b334-dd22e6dd7ea6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://secure.withwine.com/api/product/likes","urlObject":{"protocol":"https","path":["api","product","likes"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c40e20b-46c6-47fd-b334-dd22e6dd7ea6"},{"name":"Like","id":"bfed6ad9-dcb7-438e-bc6d-3a4877188973","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Id","value":"{{ProductId0}}","type":"text"}]},"url":"https://secure.withwine.com/api/product/like","urlObject":{"protocol":"https","path":["api","product","like"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bfed6ad9-dcb7-438e-bc6d-3a4877188973"},{"name":"Rate","id":"f2ea7145-1c21-498a-89db-dc0c53e08f67","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Id","value":"{{ProductId0}}","type":"text"},{"key":"Rating","value":"{{ProductRating}}","type":"text"}]},"url":"https://secure.withwine.com/api/product/rating","urlObject":{"protocol":"https","path":["api","product","rating"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f2ea7145-1c21-498a-89db-dc0c53e08f67"},{"name":"Tags","id":"123de542-90c0-4ee6-9169-657ce14440aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Id","value":"{{ProductId0}}","type":"text"},{"key":"Tags[0]","value":"{{ProductTag0}}","type":"text"},{"key":"","value":"","type":"text","disabled":true}]},"url":"https://secure.withwine.com/api/product/tags","urlObject":{"protocol":"https","path":["api","product","tags"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"123de542-90c0-4ee6-9169-657ce14440aa"},{"name":"Tags - Replace","id":"1b1b3cd1-5f09-49af-b79e-74e596ea8340","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Id","value":"{{ProductId0}}","type":"text"},{"key":"Tags[0]","value":"{{ProductTag1}}","type":"text"},{"key":"ReplaceTags","value":"true","type":"text"}]},"url":"https://secure.withwine.com/api/product/tags","urlObject":{"protocol":"https","path":["api","product","tags"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b1b3cd1-5f09-49af-b79e-74e596ea8340"},{"name":"Unlike","id":"956cb55f-fa9d-47f3-8c95-6877a9a75d79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"https://secure.withwine.com/api/product/like?Id={{ProductId0}}","urlObject":{"protocol":"https","path":["api","product","like"],"host":["secure","withwine","com"],"query":[{"key":"Id","value":"{{ProductId0}}"}],"variable":[]}},"response":[],"_postman_id":"956cb55f-fa9d-47f3-8c95-6877a9a75d79"},{"name":"Unrate","id":"c777dfb2-9f36-4786-8b44-e29c26d94707","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"https://secure.withwine.com/api/rating?Id={{ProductId1}}","urlObject":{"protocol":"https","path":["api","rating"],"host":["secure","withwine","com"],"query":[{"key":"Id","value":"{{ProductId1}}"}],"variable":[]}},"response":[],"_postman_id":"c777dfb2-9f36-4786-8b44-e29c26d94707"},{"name":"Remove Tags","id":"7aaf08c4-0746-41b6-8871-044d25dbd02d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"https://secure.withwine.com/api/tags?Tags[0]={{ProductTag1}}","urlObject":{"protocol":"https","path":["api","tags"],"host":["secure","withwine","com"],"query":[{"key":"Tags[0]","value":"{{ProductTag1}}"}],"variable":[]}},"response":[],"_postman_id":"7aaf08c4-0746-41b6-8871-044d25dbd02d"},{"name":"Get Tries","id":"d6ee5a2a-a3b6-46df-bf01-6fc828233b77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://secure.withwine.com/api/product/tasted","urlObject":{"protocol":"https","path":["api","product","tasted"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d6ee5a2a-a3b6-46df-bf01-6fc828233b77"},{"name":"Try","id":"a51fbab7-b975-4ad9-b1e0-eddcb3445d23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Id","value":"{{ProductId1}}","type":"text"}]},"url":"https://secure.withwine.com/api/product/taste","urlObject":{"protocol":"https","path":["api","product","taste"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a51fbab7-b975-4ad9-b1e0-eddcb3445d23"},{"name":"Un-try","id":"d73ef662-338b-46ac-99fa-abc8b6f5a746","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"https://secure.withwine.com/api/product/taste?Id={{ProductId1}}","urlObject":{"protocol":"https","path":["api","product","taste"],"host":["secure","withwine","com"],"query":[{"key":"Id","value":"{{ProductId1}}"}],"variable":[]}},"response":[],"_postman_id":"d73ef662-338b-46ac-99fa-abc8b6f5a746"},{"name":"Save Tasting Note","id":"38955245-2869-4e70-932b-02e42fa4e64e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"Id","value":"{{ProductId1}}","type":"text"},{"key":"Note","value":"Great wine!","type":"text"}]},"url":"https://secure.withwine.com/api/product/note","urlObject":{"protocol":"https","path":["api","product","note"],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"38955245-2869-4e70-932b-02e42fa4e64e"},{"name":"Ranges","id":"35cea4dd-0292-4633-9844-dbd195c57d61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://secure.withwine.com/api/product/ranges?id={{WineryBrandId}}","urlObject":{"protocol":"https","path":["api","product","ranges"],"host":["secure","withwine","com"],"query":[{"key":"id","value":"{{WineryBrandId}}"}],"variable":[]}},"response":[],"_postman_id":"35cea4dd-0292-4633-9844-dbd195c57d61"},{"name":"Product Lists - Tasting Menus","id":"373a5c41-fd92-4001-89db-740d7364c2e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://secure.withwine.com/api/productlist/productlists?brandId={{WineryBrandId}}&destinationId={{DestinationId0}}&includeProducts=true&productListType=TastingMenu","urlObject":{"protocol":"https","path":["api","productlist","productlists"],"host":["secure","withwine","com"],"query":[{"key":"brandId","value":"{{WineryBrandId}}"},{"description":{"content":"<p>Retrieve product lists for this Destination (includes lists with a specific destination id as well as those that apply to all destinations)</p>\n","type":"text/plain"},"key":"destinationId","value":"{{DestinationId0}}"},{"key":"includeProducts","value":"true"},{"description":{"content":"<p>Required.</p>\n","type":"text/plain"},"key":"productListType","value":"TastingMenu"},{"disabled":true,"description":{"content":"<p>\"true\" to retrieve liked, tasted, purchased information</p>\n","type":"text/plain"},"key":"includeUserData","value":"true"},{"disabled":true,"description":{"content":"<p>Applies to requests from winery users only. The customer email address to provide user data for when includeUserData=true. If this is not provided, user data will be provided based on the requester's account id (if authorization bearer header is set).</p>\n","type":"text/plain"},"key":"customerEmail","value":"{{LongTermCustomerEmailUriEncoded}}"}],"variable":[]}},"response":[],"_postman_id":"373a5c41-fd92-4001-89db-740d7364c2e6"},{"name":"Product Lists - Public","id":"d86167b1-0cd9-4ee4-9629-90d57b547b10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://secure.withwine.com/api/productlist/productlists?brandId={{WineryBrandId}}&destinationId={{DestinationId0}}&includeProducts=true&productListType=TastingMenu","urlObject":{"protocol":"https","path":["api","productlist","productlists"],"host":["secure","withwine","com"],"query":[{"key":"brandId","value":"{{WineryBrandId}}"},{"description":{"content":"<p>Retrieve product lists for this Destination (includes lists with a specific destination id as well as those that apply to all destinations)</p>\n","type":"text/plain"},"key":"destinationId","value":"{{DestinationId0}}"},{"key":"includeProducts","value":"true"},{"description":{"content":"<p>(Public types) </p>\n<ul>\n<li>TastingMenu</li>\n<li>Featured</li>\n<li>eCommerceFilter\n(Winery-only types - require authorization bearer to be set) </li>\n<li>PosCategory </li>\n<li>Tax</li>\n<li>Reporting</li>\n</ul>\n","type":"text/plain"},"key":"productListType","value":"TastingMenu"},{"disabled":true,"description":{"content":"<p>\"true\" to retrieve liked, tasted, purchased information</p>\n","type":"text/plain"},"key":"includeUserData","value":"true"},{"disabled":true,"description":{"content":"<p>Applies to requests from winery users only. The customer email address to provide user data for when includeUserData=true. If this is not provided, user data will be provided based on the requester's account id (if authorization bearer header is set).</p>\n","type":"text/plain"},"key":"customerEmail","value":"{{LongTermCustomerEmailUriEncoded}}"}],"variable":[]}},"response":[],"_postman_id":"d86167b1-0cd9-4ee4-9629-90d57b547b10"},{"name":"Product Lists By Ids","id":"ce1a9fea-2527-4554-ba33-a6aee9621496","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://secure.withwine.com/api/productlist/productlists?brandId={{WineryBrandId}}&includeProducts=true&includeProductListItems=false&includeBrand=false&ids={{ProductList1.Id}}&ids={{ProductList2.Id}}","urlObject":{"protocol":"https","path":["api","productlist","productlists"],"host":["secure","withwine","com"],"query":[{"key":"brandId","value":"{{WineryBrandId}}"},{"disabled":true,"description":{"content":"<p>Retrieve product lists for this Destination (includes lists with a specific destination id as well as those that apply to all destinations)</p>\n","type":"text/plain"},"key":"destinationId","value":"{{DestinationId0}}"},{"key":"includeProducts","value":"true"},{"description":{"content":"<p>Include the Product List Items but not the Product objects. Only used if includeProducts=false</p>\n","type":"text/plain"},"key":"includeProductListItems","value":"false"},{"disabled":true,"description":{"content":"<p>(Public types) </p>\n<ul>\n<li>TastingMenu</li>\n<li>Featured</li>\n<li>eCommerceFilter</li>\n</ul>\n<p>(Winery-only types - require UserKey to be set) </p>\n<ul>\n<li>PosCategory </li>\n<li>Tax</li>\n<li>Reporting</li>\n</ul>\n","type":"text/plain"},"key":"productListType","value":"TastingMenu"},{"disabled":true,"description":{"content":"<p>\"true\" to retrieve liked, tasted, purchased information</p>\n","type":"text/plain"},"key":"includeUserData","value":"true"},{"disabled":true,"description":{"content":"<p>Applies to requests from winery users only. The customer email address to provide user data for when includeUserData=true. If this is not provided, user data will be provided based on the requester's account id.</p>\n","type":"text/plain"},"key":"customerEmail","value":"{{LongTermCustomerEmailUriEncoded}}"},{"description":{"content":"<p>Set to \"true\" to retrieve brand information</p>\n","type":"text/plain"},"key":"includeBrand","value":"false"},{"description":{"content":"<p>Parameter can be specified multiple times to enable filtering by multiple Product List IDs.</p>\n","type":"text/plain"},"key":"ids","value":"{{ProductList1.Id}}"},{"key":"ids","value":"{{ProductList2.Id}}"}],"variable":[]}},"response":[],"_postman_id":"ce1a9fea-2527-4554-ba33-a6aee9621496"},{"name":"Product History","id":"0fe438e5-6f49-45f1-8cbd-f94a4a837655","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://secure.withwine.com/api/product/history?brandId={{WineryBrandId}}&channel=Website&includeBrand=false&triedOnly=false&likedOnly=false&purchasedOnly=false","urlObject":{"protocol":"https","path":["api","product","history"],"host":["secure","withwine","com"],"query":[{"key":"brandId","value":"{{WineryBrandId}}"},{"key":"channel","value":"Website"},{"description":{"content":"<p>Set to \"true\" to retrieve brand information for each product</p>\n","type":"text/plain"},"key":"includeBrand","value":"false"},{"key":"triedOnly","value":"false"},{"key":"likedOnly","value":"false"},{"key":"purchasedOnly","value":"false"}],"variable":[]}},"response":[],"_postman_id":"0fe438e5-6f49-45f1-8cbd-f94a4a837655"}],"id":"91fd127a-e71d-4fb1-a10e-8326d8083128","_postman_id":"91fd127a-e71d-4fb1-a10e-8326d8083128","description":""},{"name":"Address","item":[{"name":"Address Fields","id":"6dcc5ad5-126f-454c-a551-01630ecd1c9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://secure.withwine.com/api/address/fields/?countryCode=AU","description":"<p>Which fields are required/optional/unavailable for a given address.</p>\n<p>Fields are:\nStreet,\nAddressLine2,\nSuburbCity,\nState,\nPostcode</p>\n<p>States are:\nRequired,\nOptional,\nUnavailable</p>\n","urlObject":{"protocol":"https","path":["api","address","fields",""],"host":["secure","withwine","com"],"query":[{"key":"countryCode","value":"AU"}],"variable":[]}},"response":[],"_postman_id":"6dcc5ad5-126f-454c-a551-01630ecd1c9f"},{"name":"Default Address Fields","id":"51cd09db-4932-472b-9377-efd3a00a3f1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://secure.withwine.com/api/address/fields/","description":"<p>Which fields are required/optional/unavailable for a given address.</p>\n<p>Fields are:\nStreet,\nAddressLine2,\nSuburbCity,\nState,\nPostcode</p>\n<p>States are:\nRequired,\nOptional,\nUnavailable</p>\n","urlObject":{"protocol":"https","path":["api","address","fields",""],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"51cd09db-4932-472b-9377-efd3a00a3f1e"},{"name":"Countries List","id":"2c04cb6e-ad66-46e1-8a4a-74c063b85844","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://secure.withwine.com/api/address/countries/","description":"<p>Which fields are required/optional/unavailable for a given address.</p>\n<p>Fields are:\nStreet,\nAddressLine2,\nSuburbCity,\nState,\nPostcode</p>\n<p>States are:\nRequired,\nOptional,\nUnavailable</p>\n","urlObject":{"protocol":"https","path":["api","address","countries",""],"host":["secure","withwine","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c04cb6e-ad66-46e1-8a4a-74c063b85844"}],"id":"7b0b9681-2a5d-41ea-9335-cc4c24976856","_postman_id":"7b0b9681-2a5d-41ea-9335-cc4c24976856","description":""}],"event":[{"listen":"prerequest","script":{"id":"76287727-d285-49ba-87e1-a2b42b48bdde","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e40be259-03b5-4c65-b7ad-7568ecb436d1","type":"text/javascript","exec":[""]}}]}