+44 20 881 67284

34,459,005 Royalty Free Stock Photos

How to use the Fotolia API

Method: user/subaccount/create

Return the ID (an integer) of the created subaccount

Authentication

This method does not require authentication.

HTTP method

This method is called with HTTP method POST.

Arguments

Argument Type Valid Values Default Value Detail
subaccount_data array Valid Values required Fields of the array are: email, firstname, lastname, company. Only company can be left null or empty

Returned Values

Element (path) Type Description
/ int sub account id

Example Query

POST http://API_KEY@api.fotolia.com/Rest/1/user/subaccount/create

subaccount_data%5Bemail%5D=subaccount+email&subaccount_data%5Bfirstname%5D=subaccount+firstname&subaccount_data%5Blastname%5D=subaccount+lastname&subaccount_data%5Bcompany%5D=subaccount+company

Example Response

200701337

Error Codes

001: Service currently unavailable
The requested service is temporarily unavailable.
002: Failed to parse request
The request could not be parsed.
010: Missing API Key
The API key passed is missing.
011: Invalid API Key
The API key passed is not valid or has expired.
031: Invalid Method
This method does not exist in the method list.
032: Method not Available
This method is not available for this API Key.
7001: Missing field
Please fill out your Last name (maximum 20 characters)
Please fill out your First name (maximum 20 characters)
Please check your email address