Batch Upload

The batch upload allows to create one or multiple products with all necessary settings and the content upload in one step. The batch upload support only products with downloadable content. Other product types without downloadble content like a physical product are not supported. These products can be create by importing a csv file.

FlickRocket admin interface Products -> Products button "Batch Upload"

 

Product Folder
    |
    - product.json
    - picture.jpeg
    - content.epub

 

The source files can be in a sub folder, in this case the product.json file must include the relative path

"main": "files/content.epub",

"picture" : "pictures/picture.jpg"

 

Product Folder
    |
    - product.json
    - pictures
        |
        - picture.jpeg
    - files
        | 
        - content.epub

 

Example product.json with recomended informations for creating a new product of type "epub" 

{
"user": {
		"email": "<your flickrocket login email>",
		"password": "<your flickrocket login password>"
	},
	"files": {
		"main": "Files/moby-dick-hypothesis-demo.epub",
		"product_picture": [{
			"language_id": "en",
			"picture" : "Pictures/VTS_01_1_01.JPG"
		}]
	},
	"options": {
		"files": {
			"main": "replace",
			"flux_dvd": "none",
			"preview": "none"
		},
		"add_content_to_uploader": true,
		"add_content_to_shop_owner": true,
		"send_mail_to_shop_owner": true
	},
	"product": {
		"title": "ePub (epub)-3",
		"version": "Ver. 001",
		"product_type": 16,
		"drm_protected": true,
		"locales": [{
			"title": "ePub (epub) (en)",
			"description": "ePub (epub) - Description (en)",
			"language_id": "en"
		}],
		"price_license_binding": [{
			"license_id": 16,
			"price_id": 46,
			"hd": false,
			"compare_price_id": null
		}],
		"themes": [{
			"theme_id": -1
		}],
		"groups": [{
			"group_id": "c-1"
			}
		]
	}
}

 

The type of the content (product_type). It might have the following values:

IDProduct TypeFile Format
1Video SDFluxdvd or Video DVD Ifo or mp4 file
4SoftwareAny file format
5Audio with DRMFlux Package
7PDFpdf file
9Video HDmp4 file
16Ebookepub file
23Audio Track (no DRM)mp3 or flac file
24Audio Album (no DRM)multiple mp3 or flac files
27Generic FileAny file format, we recommend a zip file
29HTMLFlux Package
30Scormscorm file

 

Where do I find the license_id and price_id?

In the admin interface under Products->Prices->Product Prices and Products->Licenses->Content Licenses you find the list of prices and licenses, the ID is the number in the first column.

A product without a license and a price will not get the live status and will not appear in the shop.

 

 

 

 

 

Here you can find sample files for the batch upload process

Upload a new product by content typ:

Update an existing product with new data: