{"action":"created","issue":{"url":"https://api.github.com/repos/UltraCart/responsive_checkout/issues/71","labels_url":"https://api.github.com/repos/UltraCart/responsive_checkout/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/UltraCart/responsive_checkout/issues/71/comments","events_url":"https://api.github.com/repos/UltraCart/responsive_checkout/issues/71/events","html_url":"https://github.com/UltraCart/responsive_checkout/issues/71","id":61749797,"number":71,"title":"Cannot see variation details through Site API","user":{"login":"smartacus","id":77801,"avatar_url":"https://avatars.githubusercontent.com/u/77801?v=3","gravatar_id":"","url":"https://api.github.com/users/smartacus","html_url":"https://github.com/smartacus","followers_url":"https://api.github.com/users/smartacus/followers","following_url":"https://api.github.com/users/smartacus/following{/other_user}","gists_url":"https://api.github.com/users/smartacus/gists{/gist_id}","starred_url":"https://api.github.com/users/smartacus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartacus/subscriptions","organizations_url":"https://api.github.com/users/smartacus/orgs","repos_url":"https://api.github.com/users/smartacus/repos","events_url":"https://api.github.com/users/smartacus/events{/privacy}","received_events_url":"https://api.github.com/users/smartacus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-15T04:39:34Z","updated_at":"2015-04-02T20:29:14Z","closed_at":null,"body":"I want to display a product with variations to a customer. More specifically, each of the variations has a separate price, and I want to display the price of each variation on the product page. I don't believe this is possible with the current Site API.\r\n\r\nAs an example, this is the response I would get when querying the API for a shirt that has variations based on size and color:\r\n```javascript\r\n{\r\n  \"itemId\": \"shirt\",\r\n  \"variations\": [\r\n    {\r\n      \"name\": \"Size\",\r\n      \"values\": [ \"Small\", \"Medium\", \"Large\" ]\r\n    },\r\n    {\r\n      \"name\": \"Color\",\r\n      \"values\": [ \"Red\", \"Green\", \"Blue\" ]\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nI would like to see something like this instead:\r\n```javascript\r\n{\r\n  \"itemId\": \"shirt\",\r\n  \"variations\": {\r\n    \"Shirt_Small_Red\": { \"Size\": \"Small\", \"Color\": \"Red\" },\r\n    \"Shirt_Medium_Red\": { \"Size\": \"Medium\", \"Color\": \"Red\" },\r\n    \"Shirt_Large_Red\": { \"Size\": \"Large\", \"Color\": \"Red\" },\r\n    \"Shirt_Small_Green\": { \"Size\": \"Small\", \"Color\": \"Green\" },\r\n    \"Shirt_Medium_Green\": { \"Size\": \"Medium\", \"Color\": \"Green\" },\r\n    \"Shirt_Large_Green\": { \"Size\": \"Large\", \"Color\": \"Green\" },\r\n    \"Shirt_Small_Blue\": { \"Size\": \"Small\", \"Color\": \"Blue\" },\r\n    \"Shirt_Medium_Blue\": { \"Size\": \"Medium\", \"Color\": \"Blue\" },\r\n    \"Shirt_Large_Blue\": { \"Size\": \"Large\", \"Color\": \"Blue\" },\r\n  }\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/UltraCart/responsive_checkout/issues/comments/89036173","html_url":"https://github.com/UltraCart/responsive_checkout/issues/71#issuecomment-89036173","issue_url":"https://api.github.com/repos/UltraCart/responsive_checkout/issues/71","id":89036173,"user":{"login":"perrytew","id":3085264,"avatar_url":"https://avatars.githubusercontent.com/u/3085264?v=3","gravatar_id":"","url":"https://api.github.com/users/perrytew","html_url":"https://github.com/perrytew","followers_url":"https://api.github.com/users/perrytew/followers","following_url":"https://api.github.com/users/perrytew/following{/other_user}","gists_url":"https://api.github.com/users/perrytew/gists{/gist_id}","starred_url":"https://api.github.com/users/perrytew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perrytew/subscriptions","organizations_url":"https://api.github.com/users/perrytew/orgs","repos_url":"https://api.github.com/users/perrytew/repos","events_url":"https://api.github.com/users/perrytew/events{/privacy}","received_events_url":"https://api.github.com/users/perrytew/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T20:29:14Z","updated_at":"2015-04-02T20:29:14Z","body":"We just added a new property last week to the Item object called 'variationMatrx'.    That should provide you with the info you're looking for.\r\n\r\nhttp://secure.ultracart.com/rest/site/items?id=SHIRT&_mid=DEMO&thumbnailSize=80\r\n"}}