Documents API

Current version: v1.1 beta

List documents

List all documents uploaded into your shop document library

GET
/documents/list.json
[
    {
        "file_id": "59f704a516f46a3a7c703414",
        "file_url": "https://888-backoffice.storeden.com/document-library-view/59f704a516f46a3a7c703414",
        "name": "My File",
        "size": 10605,
        "type": "text/plain",
        "uploadDate": 1509360805
    },
	...
]

					

Get document details

GET
/documents/file.json?file_id={id}
file_id required (StoredenId) Unique id of your file
{
	"file_id": "59f704a516f46a3a7c703414",
	"file_url": "https://888-backoffice.storeden.com/document-library-view/59f704a516f46a3a7c703414",
	"name": "My File",
	"size": 10605,
	"type": "text/plain",
	"uploadDate": 1509360805
}
					

Upload a new document

POST
/documents/file.json
name required (string) Specify a name for your file. Html will be stripped out
content required (base64) base64 encoded content of your file
privacy required (string) File privacy flag. Accepted values: public or private
{
    "id": "59f707be16f46a3a7c70342b",
    "url": "https://132-backoffice.storeden.com/document-library-view/59f707be16f46a3a7c70342b"
}
					

Delete document

Permanently remove document.

DELETE
/documents/file.json
file_id required (StoredenId) Unique id of your file
{
  "ok": 1,
  "err": null,
}