{"_id":"58112e73ded0340f0085d060","__v":0,"user":"55253acaf0f4610d00f7193f","version":{"_id":"58112e71ded0340f0085d02a","project":"551e85be610f400d00837db7","__v":4,"createdAt":"2016-10-26T22:30:09.862Z","releaseDate":"2016-10-26T22:30:09.862Z","categories":["58112e72ded0340f0085d02b","58112e72ded0340f0085d02c","58112e72ded0340f0085d02d","58112e72ded0340f0085d02e","58112e72ded0340f0085d02f","58112e72ded0340f0085d030","58112e72ded0340f0085d031","58112e72ded0340f0085d032","58112e72ded0340f0085d033","58112e72ded0340f0085d034","581137cc604d3c230048b7e4","58dc367221742d0f00a73f98","590768e54669da0f00db5c0b"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"new designer","version_clean":"2.0.0","version":"2.0"},"category":{"_id":"58112e72ded0340f0085d02f","version":"58112e71ded0340f0085d02a","project":"551e85be610f400d00837db7","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-08-13T22:03:58.967Z","from_sync":false,"order":3,"slug":"store-api","title":"Store API"},"parentDoc":null,"project":"551e85be610f400d00837db7","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-08-14T20:04:52.576Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Prerequisite\",\n  \"body\": \"Getting started with the Store API requires (more than a little) experience with JavaScript. At the very least, you should know how to interact with JSON API data with jQuery and AJAX. If you don't know where to start, this [Codecademy tutorial](https://www.codecademy.com/forums/javascript-beginner-en-g7vdk/) is a great resource.\"\n}\n[/block]\nThe Store API gives you access to interact with your Cratejoy data from your store's theme code. You can use it to edit customer and subscription metadata, read information about your products, and more. \n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"All endpoints in the Store API other than the products endpoint require a customer to be logged in. They all follow this location pattern: `yourstore.com/v1/store/api/{endpoint}/`\"\n}\n[/block]\nWe also provide comprehensive access to your Cratejoy data through the [Merchant API](http://docs.cratejoy.com/docs/introduction-1). The Merchant API cannot be used from your store's theme code, however. If you want access to the Merchant API, please send a request to support:::at:::cratejoy.com.","excerpt":"Getting started with the Cratejoy Store API","slug":"introduction","type":"basic","title":"Introduction"}

Introduction

Getting started with the Cratejoy Store API

[block:callout] { "type": "warning", "title": "Prerequisite", "body": "Getting started with the Store API requires (more than a little) experience with JavaScript. At the very least, you should know how to interact with JSON API data with jQuery and AJAX. If you don't know where to start, this [Codecademy tutorial](https://www.codecademy.com/forums/javascript-beginner-en-g7vdk/) is a great resource." } [/block] The Store API gives you access to interact with your Cratejoy data from your store's theme code. You can use it to edit customer and subscription metadata, read information about your products, and more. [block:callout] { "type": "info", "body": "All endpoints in the Store API other than the products endpoint require a customer to be logged in. They all follow this location pattern: `yourstore.com/v1/store/api/{endpoint}/`" } [/block] We also provide comprehensive access to your Cratejoy data through the [Merchant API](http://docs.cratejoy.com/docs/introduction-1). The Merchant API cannot be used from your store's theme code, however. If you want access to the Merchant API, please send a request to support@cratejoy.com.