Stores

GET http://max.com/service/stores

Returns a list of all stores.

Code JSON
200 List of stores

Example

[{"id":1,"currency":"USD","country":{"id":1,"name":"USA","code":"US"}}]

GET http://max.com/service/stores/{id}

Returns the store specified by the id.

Code Body
200 A store
404 If the id does not exist. The response body will be an error.

Example

{"id":1,"currency":"USD","country":{"id":1,"name":"USA","code":"US"}}

GET http://max.com/service/stores?cc=[ISO 3166 country code]

Returns the store for the given country. There is at most one store per country.

Code JSON
200 A store
204 If there is no store for the given country. No content is returned.

Example

{"id":1,"currency":"USD","country":{"id":1,"name":"USA","code":"US"}}

Categories

GET http://max.com/service/cats?sid=[store id]

Lists root categories for a given store.

Code JSON
200 A list of categories

Example

curl http://max.com:3000/service/cats?sid=[store id]
[{"displayPosition":1,"id":4,"store":{"id":1,"currency":"USD","country":{"id":1,"name":"USA","code":"US"}},"description":"MEMBERSHIPS","name":"MEMBERSHIPS","children":[]},{"displayPosition":2,"id":7,"store":{"id":1,"currency":"USD","country":{"id":1,"name":"USA","code":"US"}},"description":"SPECIALS","name":"SPECIALS","children":[]}]

GET http://max.com/service/cats/{id}

Returns the category specified by the id.

Code JSON
200 A category
404 If the id does not exist. The response body will be an error

Example

Products

GET http://max.com/service/products/{id}

Returns the product with the given id.

Code JSON
200 A product

Example

{"displayPosition":1,"id":1,"description":"IRON ON T - RED","name":"IRON ON T - RED","hasVariations":false,"sku":"1002","units":[{"id":1,"price":{"pence":1700,"currency":"USD"},"productId":1}]}

GET http://max.com/service/products?cid=[category ID]&offset=[offset]&limit=[limit]

Returns a list of all products within offset and limit in a category.

Code JSON
200 List of products

Example

[{{"displayPosition":1,"id":1293,"description":"2009 TEN OF CLUBS SHIRT. BAYSIDE ORGANIC 100% COTTON.","name":"2009 TEN OF CLUBS SHIRT","hasVariations":true,"sku":"1182","units":[{"id":1817,"price":{"pence":2000,"currency":"USD"},"variations":[{"value":"Small","type":"size"}],"productId":1293},{"id":1743,"price":{"pence":2000,"currency":"USD"},"variations":[{"value":"Medium","type":"size"}],"productId":1293},{"id":1750,"price":{"pence":2000,"currency":"USD"},"variations":[{"value":"Large","type":"size"}],"productId":1293},{"id":1751,"price":{"pence":2000,"currency":"USD"},"variations":[{"value":"X-Large","type":"size"}],"productId":1293},{"id":1752,"price":{"pence":2000,"currency":"USD"},"variations":[{"value":"XX-Large","type":"size"}],"productId":1293},{"id":1818,"price":{"pence":2000,"currency":"USD"},"variations":[{"value":"XXX-Large","type":"size"}],"productId":1293}]}}}]
Powered by Drupal, an open source content management system

Navigation