Submit an Idea or a tool Contact Us
CafePress Developers Network
Home Tools

Content API - Store Layout

Back to Content API Overview
Store Layout API pulls a list of all the Stores, and Sections within each Store, in the authenticated user's Account.

store.list.cp

Get a list of stores owned by the logged in User.
Signature
store.list.cp?userToken=string-value&appKey=string-value   
Parameters
Required:    
userToken - a valid user authentication token.
appKey - an application key.   	   

Optional:    
None
Response
A list of Store Ids owned by this user.
  <?xml version="1.0" ?>
- <values>
  <value>1900105</value>
  <value>1901805</value>
  </values>
Errors
Standard Errors as described here
Example
http://api.cafepress.com/store.list.cp?appKey=11111111-1111-1111-1111-1111111111111&userToken=1b00cd55-7014-4746-9e05-b686eb277e72

store.listStoreSections.cp

List the Sections contained in this Store (StoreID) or this Section (StoreSectionID)
Signature
store.listStoreSections.cp?userToken=string-value&appKey=string-value&storeSectionId=integer-value
store.listStoreSections.cp?userToken=string-value&appKey=string-value&storeId=integer-value
Parameters
Required:    
userToken - a valid user authentication token.
appKey - an application key.   	   

Optional:    
storeSectionId - The Store No  (integer)
storeId - The Section No (integer)
Response
A list of children Sections (IDs) contained in the specified Store or Section.
<?xml version="1.0" ?> 
- <values>
<value>1758455</value> 
</values>
Errors
Standard Errors as described here
Example
http://api.cafepress.com/store.listStoreSections.cp?appKey=11111111-1111-1111-1111-1111111111111&userToken=1b00cd55-7014-4746-9e05-b686eb277e72&storeSectionId=1758455

Note:- Either storeId or the storeSectionId is specified. Not Both.
Signup to receive updates