_images/depositphotos_logo.png

Depositphotos Enterprise Solution API

Enterprise Solution

Introduction

These guidelines describe the use of API for working with Depositphotos files. These guidelines are intended for developers familiar with HTTP and JSON data transfer technologies and possessing basic knowledge of programming in any of programming languages.

Enterprise API is the application access interface, which allows registered corporate clients to work with Depositphotos’ content and licenses.

To get access to Enterprise API endpoint, you need a corresponding Enterprise API key. Along with login and password, Enterprise API key provides access to Enterprise API features. Details are given below.

Enterprise API includes features for searching files in the Depositphotos database, for content licensing, issuing of invoices and licensing, transfer of rights (licences), and management of working groups within one company (or corporate structure.)

General information

Registration

In order to work with Depositphotos as a corporate client, you need an Enterprise account at Depositphotos and an access key to Enterprise API (you can get it from your manager.)

After obtaining username, password and the API key, you can start working with Enterprise API.

General principles for working with Enterprise API

All Enterprise API calls are performed through HTTPS protocol with GET or POST parameters set. API returns a response in JSON format. All requests must be sent to the following base url: https://api.depositphotos.com

There are two mandatory parameters for all API methods

dp_apikey:

is an API key, which is issued by a manager to a user after his/her registration on Depositphotos

dp_command:

API method (command) ID

For methods, which require user authorization, there is one more mandatory parameter required:

dp_session_id:

unique session ID, which will be in response after logging in

For requests you can use either form-data or json format for all variables. But if you want to use JSON format, you should:

  • set the Content-Type header to application/json

  • pass dp_apikey and dp_command parameters in the URL (i.e. https://api.depositphotos.com?dp_apikey=123&dp_command=loginEnterprise)

Example of request with JSON format:

curl --silent -H 'content-type: application/json' \
'https://api.depositphotos.com?dp_command=loginEnterprise&dp_apikey=e0a1bdd9923bc601293cd053ffa4eaf6e0a1bdd1' \
-d '{"dp_login_user": "something.similar.to.your.email", "dp_login_password": "yourSecurePassword"}'

Example of request with form-data format:

curl --silent https://api.depositphotos.com \
-d 'dp_command=loginEnterprise&dp_apikey=e0a1bdd9923bc601293cd053ffa4eaf6e0a1bdd1&dp_login_user=your.login&dp_login_password=123456'

One more example. The request with form-data format and dp_command/dp_apikey sent in the URL:

curl --silent 'https://api.depositphotos.com?dp_command=loginEnterprise&dp_apikey=e0a1bdd9923bc601293cd053ffa4eaf6e0a1bdd1' \
-d 'dp_login_user=your.login&dp_login_password=123456'

All API methods can return two different results: success or failure (stated in the ‘type’ variable of response). You should rely on the ‘type’ variable to determine the result of the request, not on response HTTP code.

Each ‘success’ result contains specific parameters for each API method, but following parameters are general for all API methods:

timestamp:

current date and time in the “YYYY-MM-DD HH:MM:SS” format

version:

API version; the most up-to-date version is 1.3

type:

‘success’ for successful requests, ‘failure’ if an error occurs

Example of an error

"error": {
    "errorcode": error code
    "errormsg": error message
    "exception": error type
}

Notes on parameters for API methods

  • bool: will be considered TRUE for “1”, FALSE for “0”.

  • array: standard array of http-request. Example: param_a[]=val1&param_a[]=val2&param_b[first_key]=val3&param_b[second_key]=val4

User authentication

Any actions with files, as well as many other actions require user authentication. User authentication returns a unique session ID. Session ID remains valid for three hours. So, to provide uninterrupted work, it’s necessary to set up automated API user login in 1-3 hours.

loginEnterprise

User authentication with a login, password, and API key. Returns a unique session ID

Request

string

dp_command

Command name ‘loginEnterprise’

string

dp_apikey

API key

string

dp_login_user

Application user login

string

dp_login_password

Application user password

Response
{
    "timestamp": "2013-03-13 06:49:19",
    "version": "1.3",
    "type": "success",
    "apiKey": "0cbc785ec3776c276bf2f",
    "sessionid": "cfaa06635e3c81b08",
    "userid": "100151"
}

Logout is performed using the request:

logout

Logout (close API session)

Request

string

dp_command

Command name ‘logout’

string

dp_apikey

API key

string

dp_session_id

Session ID

Response
{
    "timestamp": "2013-03-13 06:49:19",
    "version": "1.3",
    "type": "success",
    "apiKey": "0cbc785ec3776c276bf2f"
}

Working with user groups

getUserEnterpriseGroup

Getting information on the group the user belongs to (type of payment, balance, vat, etc.)

Request

string

dp_command

Command name ‘getUserEnterpriseGroup’

string

dp_apikey

API key

string

dp_session_id

Session ID

Response
{
     "timestamp": "2013-03-13 06:49:19",
     "version": "1.3",
     "type": "success",
     "group": [
         "groupId": 12345,
         "money": 12345.12,
         "profileId": 12345,
         "isPostpayment": true,
         "balance": 12345.12,
         "vatNumber": "AX-1234",
         "vatRate": "5.5",
         "vatEnabled": true
     ]
}

getEnterpriseUserData

This method is used to get account data of the user belonging to the group

Request

string

dp_command

Command name ‘getEnterpriseUserData’

string

dp_apikey

API key

string

dp_session_id

Session ID

int

dp_user_id

Optional. Default - get info about current user

Response
{
    "timestamp": "2018-05-05 14:09:44",
    "version": "1.3",
    "type": "success",
    "data": {
        "username": "Stew"
        "firstName": "Steave"
        "lastName": "Rivera"
        "city": "Futufal"
        "avatarBig":"https://static.depо.../storage/avatars/1369/1307/p_13607.jpg?15139"
        "avatarSmall":"https://static.depos.../storage/avatars/1369/13607/m_1607.jpg?15246139"
        "occupation": "Futufal"
        "avatar": "https://static.depо.../storage/avatars/1369/1307/p_13607.jpg?15139"
        "userId": "13692607"
        "address": "537 Pezis Center"
        "email": "test3@depositphotos.com"
        "phone": "+38012469843094040"
        "state": "Ghg"
        "zip": "07190"
        "registered": "1502183924"
        "enterpriseLite": {
            "groupId": 1570484
       }
        "country": "RU",
        "businessName": "Qwerty"
        "timezone": "Europe/Kiev"
        "website": "wedsite"
        "industry": "Business Services"
        "biography": "B0499144"
        "vatNumber": null
    }
}

Working with files

License types and content licensing prices are stipulated in the agreement.

If you work on a prepaid basis (“Prepaid”), you need positive account balance to license the content. If you work with on a postpaid basis, an invoice for all licensed content is issued in the end of the month.

getMediaData

Retrieve all information about the media item.

Request

string

dp_command

Command name ‘getMediaData’

string

dp_apikey

Client API key

int | array

dp_media_id

ID of requested item. Can be integer (for single item)
or array for several.

bool

dp_full_similar

Optional. Default is false. If false, search returns array
of ID similar, series. If true, search returns array of
objects {id: similar_id, thumbnail: link on similar thumbnail}.

string

dp_domain

Optional. Default is ‘depositphotos.com’. Domain name of
any available CDN server (e.g. imgcontent.net).

string

dp_datetime_format

Optional. Default is ‘datetime’. Determines output format
for date. Values: ‘date’, ‘datetime’, ‘unix’.
‘date’ => ‘Apr. 18, 2019’
‘datetime’ => ‘Apr. 18, 2019 14:54:25’
‘unix’ => ‘1408443174’ (Seconds since Unix Epoch)

bool

dp_translate_items

Optional. Default is false. If true, title, description,
categories will be translated (if translation exists) to
language dp_lang. Tags will be translated if only single
item is requested.

string

dp_country_excluded

Optional. Apply country restrictions. For example, with
dp_country_excluded=cn items forbidden in China will not
be returned. Values match the Available languages abbrev.

string

dp_lang

Optional. Language for translation (‘de’, ‘ru’, ‘fr’, ‘sp’,
‘zh’ (for chinese) etc.)

int

dp_search_layout

Optional. Default is 0. If 1, results returned in same
format as search.

Response

{
    "timestamp": "2020-03-13 06:49:19",  // Current date and time in YYYY-MM-DD HH:MI:SS format
    "version": "1.3",                    // API version
    "type": "success",                   // The query result type
    "title": "Gorgeous brunette woman.", // Item title
    "description": "Portrait of elegantly dressed young gorgeous brunette woman.",  // Item description
    "width": "2584",                     // Width of the original media
    "height": "3000",                    // Height of the original media
    "mp": "7.75",                        // Original resolution in megapixels
    "status": "active",
    "views": 17225,                      // Number of views for current item
    "downloads": 1269,                   // Number of downloads for current item
    "categories": {                      // Categories the current item available in
        "10": "Beauty & Fashion",        // Result format is {category_id: category_name}
        "29": "People"
    },
    "published": "Jan.31, 2013 15:29:17",  // Datetime of item publication
    "username": "envivo",                // Author of current item
    "level": "silver",                   // Current image author level
    "sizes": {                           // Array of sizes available for current item
        "s": {
            "width": 431,
            "height": 500,
            "credits": 1,                // Media price with discount
            "subscription": 1,           // Available by subscription
            "imagepack": 0,              // Available by imagepack
            "ondemand": 1,
            "mp": 0.5
        },
        "m": {
            "width": 861,
            "height": 1000,
            "credits": 3,
            "subscription": 1,
            "imagepack": 0,
            "ondemand": 1,
            "mp": 2
        },
        "l": {
            "width": 1723,
            "height": 2000,
            "credits": 6,
            "subscription": 1,
            "imagepack": 0,
            "ondemand": 1,
            "mp": 8
        },
        "xl": {
            "width": 2584,
            "height": 3000,
            "credits": 10,
            "subscription": 1,
            "imagepack": 0,
            "ondemand": 1,
            "mp": 15
        },
        "el0": {
            "width": 2584,
            "height": 3000,
            "credits": 80,
            "subscription": 0,
            "imagepack": 0,
            "ondemand": 1
        }
    },
    "upload_timestamp": "1359471261",
    "id": "19478735",                    // Item ID
    "userid": 1345889,                   // Item author ID
    "user_id": 1345889,
    "blocked": false,
    "updated": "Jul.08, 2019 13:11:49",
    "isextended": true,                  // If false, the item cannot be sold with an extended license
    "isexclusive": false,                // Whether item is exclusive
    "nudity": false,
    "iseditorial": false,                // Whether item can be sold only for editorial use
    "is_editorial": "no",
    "isFreeItem": false,
    "is_mobile": "no",
    "itype": "image",                    // Media type (image, vector, video)
    "original_filesize": "3675812",      // File size of original file in bytes
    "original_extension": "jpg",         // Extension of original file
    "thumbnail": "https://st.depositphotos.com/.../thumb_110.jpg",
    "thumb": "https://st.depositphotos.com/.../thumb_110.jpg",       // Link to small item preview
    "thumb_large": "https://st.depositphotos.com/.../thumb_170.jpg",
    "thumb_huge": "https://st.depositphotos.com/.../thumb_450.jpg",  // Link to huge item preview
    "thumb_max": "https://st.depositphotos.com/.../woman.jpg",
    "medium_thumbnail": "https://st.depositphotos.com/.../thumb_170.jpg",  // Link to medium item preview
    "large_thumb": "https://st.depositphotos.com/.../woman.jpg",     // Link to large item preview
    "url_big": "https://st.depositphotos.com/.../woman.jpg",
    "url_max_qa": "https://st.depositphotos.com/.../thumb_450.jpg",
    "thumb_170": "https://st.depositphotos.com/.../woman.jpg",
    "huge_thumb": "https://st.depositphotos.com/.../woman.jpg",
    "url": "https://st.depositphotos.com/.../thumb_110.jpg",         // Link to big item preview with Depositphotos watermark
    "url2": "https://st.depositphotos.com/.../thumb_450.jpg",        // Link to big item preview with neutral watermark
    "itemurl": "https://depositphotos.com/.../woman.html",           // Link to item on Depositphotos
    "lightfield": false,
    "avatar": "https://st.depositphotos.com/.../avatar.jpg",         // Author photo link
    "tags": [                            // Array of tags associated with media
        "fun",
        "blue",
        "beautiful",
        "happy",
        "business",
        "person",
        "girl",
        "female",
        "young",
        "smiling",
        "people",
        "women",
        "cheerful",
        "portrait",
        "cute",
        "smile",
        "brunette",
        "pretty",
        "woman",
        "attractive",
        "gorgeous"
    ],
    "available_sizes": {                 // Array of sizes available for current item
        "s": 1,                          // Result format is {size_name: item_price_in_credits}
        "m": 3,
        "l": 6,
        "xl": 10,
        "el0": 80
    },
    "similar": [                         // Similar items IDs
        157798924,
        117883264,
        173483706,
        133222882
    ],
    "same_model": [                      // Same model items IDs
        20192481,
        18186253,
        24131271,
        19374401
    ],
    "series": [                          // Same series items IDs
        14784249,
        20192371,
        20192481,
        21262963
    ]
}

Complimentary downloads

All corporate users of Enterprise API can download high-resolution test samples without watermarks (unless special downloading rights are set.)

complimentaryDownload

Returns a link to a file for free download

Request

string

dp_command

Command name ‘complimentaryDownload’

string

dp_apikey

API key

string

dp_session_id

Session ID

int

dp_item_id

The identifier of the item

int

dp_option

The size of file. “s-2015”, “m-2015”, “l-2015”, etc

dp_option parameter varies based on collections and downloaded content:

  • for main collection: “s-2015”, “m-2015”, “l-2015”, “xl-2015”, “vect”

  • for premium collection: “cs”, “сl”, “xl-2015”

  • for video files: “240”, “480”, “720”, “1080”, “4k”

Response
{
     "timestamp": "2013-03-13 06:49:19"
     "version": "1.3",
     "type": "success"
     "apiKey": "0cbc785ec3776c276bf2f"
     "downloadLink": "http://st.depositphotos.com/storage/item/download?id=1234"
}

To view information on free downloads over a selected period, the following method is used:

getGroupCompDownloads

Returns all free downloads for a current group.

Request

string

dp_command

Command name ‘getGroupCompDownloads’

string

dp_apikey

API key

string

dp_session_id

Session ID

int

dp_date_start

Start date when items were downloaded

string

dp_date_end

End date when items were downloaded

string

dp_user_id

Id of user downloaded item

int

dp_limit

The number of downloads

int

dp_offset

The shift from the beginning

string|array

dp_type

image/vector/video

Response
{
     "timestamp": "2013-05-06 09:30:50"
     "version": "1.3"
     "type": "success"
     "downloads": [
         {
              "datetime": 1471871234
              "filename": "File name here"
              "groupId": 12
              "itemId": 12345678
              "marker": 3
              "itemType": "video"
              "itemLink": "/123/link.html"
              "preview": "http://st.depositphotos.com/123/linktofile/filename.jpg"
              "width": 1920
              "height": 1080
              "userId": 12345678
              "actor": [
                  "id": 12345678
                  "username": "Usertest"
              ]
              "seler": [
                  "id": 12345678
                  "username": "Usertest"
              ]
              "download": "http://st.depositphotos.com/storage/item/download?id=1234"
              "visible": true
         }
         {
             ...
         }
     ]
     "count": 2
}

AI Image Generator

The API provides endpoints that allow users to generate and retrieve images. All images created using the Depositphotos AI Image Generator can be licensed like any other file on Depositphotos through the licenseItem command.

To integrate the AI Image Generator into your product and start generating images, select an API plan that meets your image generation needs.

Key API Endpoints and Functionalities:

imageGenerator.generate

Initiates the image generation process based on the input request. If a callback address is provided in the request, the generated image will be sent there. Otherwise, users can retrieve the result using the imageGenerator.get command.

Request

string

dp_command

Command name ‘imageGenerator.generate’

string

dp_apikey

API key

string

dp_session_id

Session ID

string

dp_prompt

The prompt for image generation. Maximum length is 400

string

dp_callback_url

Optional. Callback URL where the results will be sent

string

dp_aspect_ratio

Optional. The aspect ratio of the image
[“1:1”|”2:3”|”3:2”|”3:4”|”4:3”|”4:5”|”5:4”|”9:16”|”16:9”]

string

dp_medium

Optional. Medium of the generated images. [“art”|”photography”]
Response
{
    "timestamp": "2024-09-24 12:27:04",
    "version": "1.3",
    "type": "success",
    "data": {
        "uuid": "3524139b-20c7-4cda-8860-8ede3f79306d",
        "prompt": "Entered prompt",
        "status": "new",
        "purchaseStatus": "deferred",
        "items": [
            {
                "uuid": "328f2aa8-6e7f-4c65-8761-91f9110e80c0",
                "dpItemId": null,
                "previewUrl": null
            },
            {
                "uuid": "b9cd71f9-89c1-4311-929d-211d567a9352",
                "dpItemId": null,
                "previewUrl": null
            },
            {
                "uuid": "610811f8-ab8c-4a08-a284-885d5675b449",
                "dpItemId": null,
                "previewUrl": null
            },
            {
                "uuid": "e1410eb7-3279-4962-8a04-1bbda618919c",
                "dpItemId": null,
                "previewUrl": null
            }
        ]
    }
}

imageGenerator.get

Retrieves the status and details of a generated image using its unique prompt UUID. If successful, the data will show

data["status"]: "completed"
data["purchaseStatus"]: "paid"
data["items"][]["dpItemId"]: not null

The command response may change during processing. In the first step of processing, it will contain the value of the previewUrl field and will not contain the dpItemId. Later, the dpItemId value will appear.

You can preview the generated image via the previewUrl field and license it using the dpItemId

It is important to note that the content at the previewUrl link will only be temporarily available.

For licensing, simply use the licenseItem command.

Request

string

dp_command

Command name ‘imageGenerator.get’

string

dp_apikey

API key

string

dp_session_id

Session ID

string

dp_uuid

Prompt uuid received from imageGenerator.generate

Response
{
    "timestamp": "2024-09-24 12:29:04",
    "version": "1.3",
    "type": "success",
    "data": {
        "uuid": "3524139b-20c7-4cda-8860-8ede3f79306d",
        "prompt": "Entered prompt",
        "status": "completed",
        "purchaseStatus": "paid",
        "items": [
            {
                "uuid": "328f2aa8-6e7f-4c65-8761-91f9110e80c0",
                "dpItemId": 123456781,
                "previewUrl": "https://st5.depositphotos.com/secure/234567/123456781/staff_1024.jpg?md5=90dddd3a1e0fa045badd591af255b60c"
            },
            {
                "uuid": "b9cd71f9-89c1-4311-929d-211d567a9352",
                "dpItemId": 123456782,
                "previewUrl": "https://st5.depositphotos.com/secure/234567/123456782/staff_1024.jpg?md5=0919446ec73f95992aa1417e591dc186"
            },
            {
                "uuid": "610811f8-ab8c-4a08-a284-885d5675b449",
                "dpItemId": 123456783,
                "previewUrl": "https://st5.depositphotos.com/secure/234567/123456783/staff_1024.jpg?md5=6dbf4e6f0f8cc0292254fcbc0a1113af"
            },
            {
                "uuid": "ce735bf2-9c19-492a-816c-19a63833ceaf",
                "dpItemId": 123456784,
                "previewUrl": "https://st5.depositphotos.com/secure/234567/123456784/staff_1024.jpg?md5=fef0e146e16663aa72023d36ec33bd64"
            }
        ]
    }
}

imageGenerator.getMediaData

After the entire generation process is completed, the command allows you to get the data of each generated item separately using its uuid.

Request

string

dp_command

Command name ‘imageGenerator.getMediaData’

string

dp_apikey

API key

string

dp_session_id

Session ID

string

dp_uuid

Generated file uuid recived from
imageGenerator.generate data[“items”][][“uuid”]
Response
{
    "timestamp": "2024-09-24 12:29:34",
    "version": "1.3",
    "type": "success",
    "data": {
        "id": 123456781,
        "height": 2048,
        "width": 2048,
        "type": "i",
        "aiGenerated": true,
        ....
    }

}

Licensing of files

Licensing of files is the process when a client informs that the file suits him/her and then he/she pays for it. Files purchase is performed using account balance or on credit in case of “Postpaid” payment. Licensing is performed under one of the licenses previously configured for the account. Each license has its own price. To license the file, you have to know the list of available licenses for the group and to determine the license, which will be used for licensing of the file.

getLicenseOfGroup

Returns a list of licenses available to the group of users.

Request

string

dp_command

Command name ‘getLicenseOfGroup’

string

dp_apikey

API key

string

dp_session_id

Session ID

Response
{
     "timestamp": "2013-03-13 06:49:19",
     "version": "1.3",
     "type": "success"
     "data": {
      [
         "licenseId": 12345
         "licenseName": "Digital License"
         "templateId": 12
         "productType": "image"
         "sizes": {
          [
             "id": "s-2015"
             "label": "Small"
             "price": 12.34
          ],
          [
             ...
          ]
         }
      ],
      [
         ...
      ],
     }
     "count": 2
}

licenseItem

Obtaining a license to use a file

Request

string

dp_command

Command name ‘licenseItem’

string

dp_apikey

API key

string

dp_session_id

Session ID

array

dp_licensing

Licensing data

string

dp_project

Optional. Default ‘’

string

dp_client

Optional. Default ‘’

string

dp_purchase_order

Optional. Default ‘’

string

dp_isbn

Optional. Default ‘’

string

dp_other

Optional. Default ‘’

Parameters dp_project, dp_client, dp_purchase_order, dp_isbn, dp_other are non-mandatory. These parameters are set up by the manager and are used for convenience. dp_licensing parameter must contain an object with the following data:

{
    "dp_item_id": 12345678,
    "dp_license_id": 10123,
    "dp_option": "s-2015",
    "dp_ext_options": 27
}

dp_ext_options parameter contains integer with a bit mask for additional options:

1

Unlimited print

2

Multi-seat

4

Extra legal warranty

8

Product for resale and free distribution

16

Transfer rights

Response
{
     "timestamp": "2013-03-13 06:49:19",
     "version": "1.3",
     "type": "success"
     "status": "success"
     "result": [
         "12345678" : [
             "result": "success"
             "transactions": [
                 "12345678" : {
                     [
                         "sizes": 2
                         "license": 10123
                         "transactionId": 1234567
                     ],
                     [
                         ...
                     ]
                 ]
             }
             "transaction": {
                 [
                     "sizes": 2
                     "license": 10123
                     "transactionId": 12345678
                 ],
                 [
                     ...
                 ]
             }
             "fileId": 12345678
             "downloadLink": "http://st.depositphotos.com/storage/item/download?id=1234"
         ]
     ]
}

getLicensedItems

This method returns a list of user’s licensed files

Request

string

dp_command

Command name ‘getLicensedItems’

string

dp_apikey

API key

string

dp_session_id

Session key

string

dp_type

Optional. Type of licenses. [“paid”|”uninvoiced”|”invoiced”].
Default - all types

string

dp_date_start

Optional. Start date when items were licensed

string

dp_date_end

Optional. End date when items were licensed

int

dp_user_id

Optional. User identity filter

int

dp_offset

Optional. Shift for page

int

dp_limit

Optional. Limit for display invoices per page
Response
{
     "timestamp": "2013-05-06 09:30:50"
     "version": "1.3"
     "type": "success"
     "downloads": {
      [
         "itemTransactionId": 123456789
         "licenseId": 10123
         "datetime": 1471871234
         "filename": "Some filename here"
         "itemId": 1234567
         "itemLink": "http://depositphotos.com/01234/item-name.html"
         "preview": "http://static5.depositphotos.com/.../depositphotos_01234-item-name.jpg"
         "width": 110
         "height": 110
         "userId": 12345678
         "actor": [
             "id": 12345678
             "username": "Username"
         ],
         "seller": [
             "id": 12345678
             "username": "Username"
         ]
         "licenseTransferId": 1234567
         "status": "Invoiced"
         "purchaseOrder": "Some order"
         "invoice_id": 12345
         "marker": 3
         "currencyId": 5
         "groupId": 1234
         "visible": true
      ],
      [
         ...
      ]
     }
     "count": 2
}

getTransactionLicenseInfo

The method returns information on the license issued on a file

Request

string

dp_command

Command name ‘getTransactionLicenseInfo’

string

dp_apikey

API key

string

dp_session_id

Session key

int

dp_transaction_id

Identity of licenses transaction

Response
{
  "timestamp": "2013-03-25 10:10:06",
  "version": "1.3",
  "type":"success",
  "license" => [
      "id" => 12
      "name" => "Test"
      "link" => "/license-desc.html"
      "fields" => []
      "transferId" => 12|null
  ],
  "transaction" => [
      "id" => 12
      "price" => 12.99
      "size" => "xs|s|m|l|xl|xxl|vect|.."
      "timestamp" => 1234567890
      "currencyId" => 5
  ],
  "item" => [
      "id" => 12
      "filename" => "test.jpg"
      "type" => "image|vector|video"
      "isEditorial" => true|false
      "isNudity" => true|false
      "preview" => "http://static6.depositphotos.com/..."
      "link" => "http://test"
      "width" => 1080
      "height" => 1920
  ],
  "from": [
      "company": "Depositphotos Inc."
      "address": "547 Broadway, ..."
      "someAnotherKey": anotherValue
      ... : ...
  ]
  "to": [
      "company": "Some user company"
      "address": "Company address here"
      "someAnotherKey": anotherValue
      ... : ...
  ]
  "transferredTo": [
      "company": "Some user company"
      "address": "Company address here"
      "someAnotherKey": anotherValue
      ... : ...
  ]
}

Transfer of license

Transfer of license allows transferring rights to use the content to the third party

transferEnterpriseLicense

Transfers license from current user to another user

Request

str

dp_command

Command name ‘transferEnterpriseLicense’

str

dp_apikey

API key

str

dp_session_id

Session key

int

dp_item_transaction_id

Transaction id. Optional

array

dp_item_transaction_ids

Transaction ids. Optional.

array

dp_from

From data.

array

dp_to

To data

One of dp_item_transaction_id or dp_item_transaction_ids should be passed. dp_from and dp_to data should be object, that can contain following keys:

{
    "company":...,
    "fullName":...,
    "address":...,
    "city":...,
    "state":...,
    "zip":...,
    "email":...,
    "phone":...,
    "country":...,
    "website":...
}
Response
{
     "timestamp": "2013-05-06 09:30:50"
     "version": "1.3"
     "type": "success"
     "result": true|false
}

getTransferredLicenses

Returns transferred licenses for the current user group

Request

string

dp_command

Command name ‘getTransferredLicenses’

string

dp_apikey

API key

string

dp_session_id

Session key

int

dp_offset

Shift for page

int

dp_limit

Limit for display invoices per page

string

dp_date_start

Optional. Start date when items were licensed

string

dp_date_end

Optional. End date when items were licensed

int

dp_user_id

Optional. User identity filter

string

dp_type

Optional. Type of licenses.
Can be “paid” or “uninvoiced” or “invoiced”.Default - all types
Response
{
     "timestamp": "2013-05-06 09:30:50"
     "version": "1.3"
     "type": "success"
     "downloads": {
      [
         itemTransactionId: 123456789
         licenseId: 10123
         datetime: 1471871234
         filename: "Some filename here"
         itemId: 1234567
         itemLink: "http://depositphotos.com/01234/item-name.html"
         preview: "http://static5.depositphotos.com/.../depositphotos_01234-item-name.jpg"
         width: 110
         height: 110
         userId: 12345678
         actor: [
             id: 12345678
             username: "Username"
         ],
         seller: [
             id: 12345678
             username: "Username"
         ]
         licenseTransferId: 1234567
         status: "Invoiced"
         purchaseOrder: "Some order"
         marker: 3
         currencyId: 5
         groupId: 1234
         visible: true
      ],
      [
         ...
      ]
     }
     count: 2
}

Working with invoices

createEnterpriseInvoice

Creates an invoice for licenses created by the group

Request

string

dp_command

Command name ‘createEnterpriseInvoice’

string

dp_apikey

API key

string

dp_session_id

Session key

array

dp_item_transaction_ids

Transaction Ids to include into the invoice as array.
For example: {12345677, 12345678, 123456789}

string

dp_field_value

Optional. Value of invoiced field to replace in the
invoice
Response
{
     "timestamp": "2013-03-13 06:49:19",
     "version": "1.3",
     "type": "success"
     "result": true|false
}

getEnterpriseInvoice

Returns detailed information on the invoice

Request

string

dp_command

Command name ‘getEnterpriseInvoice’

string

dp_apikey

API key

string

dp_session_id

Session key

int

dp_invoice_id

Invoice id for detail

Response
{
     "timestamp": "2013-03-13 06:49:19",
     "version": "1.3",
     "type": "success"
     "invoice": [
         "items" : {
          [
             "description": "Balance Refill"
             "qty": 123
             "price": 123
          ]
          [
             "itemId": 12345678
             "thumbUrl": "http://static5.depositphotos.com/../depositphotos_itemname.jpg"
             "licenseInfo": {
              [
                 "key": "Project",
                 "value": "Some project here"
              ],
              [
                 "key": "Purchase Order",
                 "value": "Some order here"
              ],
              [
                 ...
              ]
             }
             "licenseId": 10123
             "size": "s-2015"
             "itemOriginalSize": [
                 "height": 1050
                 "width": 1980
             ]
             "type": "image"
             "price": 123.45
             "vatPrice": 134
             "vatRate": 10.00
             "isEditorial": false
             "isNudity": false
          ],
          [
             ...
          ]
         }
         "state": "paid"
         "total": 456.78
         "vat": 11.11
         "subTotal": 445.67
         "id": 987654
         "number": "ESI-10987654"
         "type": "file_invoice"
         "date": 1471871234
         "currencyId": 0
         "from": [
             "company": "Depositphotos Inc."
             "address": "547 Broadway, ..."
             "someAnotherKey": anotherValue
             ... : ...
         ]
         "to": [
             "company": "Some user company"
             "address": "Company address here"
             "someAnotherKey": anotherValue
             ... : ...
         ]
         "paid": 1471871234
     ]
}

getEnterpriseInvoiceCount

Returns number of invoices issued to the group

Request

string

dp_command

Command name ‘getEnterpriseInvoiceCount’

string

dp_apikey

API key

string

dp_session_id

Session key

string

dp_state

Optional. Invoice state. “unpaid” or “paid” or”cancelled”
Default - all

int

dp_group_id

Optional. Group id to filter
Response
{
     "timestamp": "2013-03-13 06:49:19",
     "version": "1.3",
     "type": "success",
     "count": 2
}

getEnterpriseInvoiceList

Lists invoices of the group

Request

string

dp_command

Command name ‘getEnterpriseInvoiceList’

string

dp_apikey

API key

string

dp_session_id

Session key

int

dp_offset

Shift for page

int

dp_limit

Limit for display invoices per page

string

dp_state

Optional. Invoice state. “unpaid” or “paid” or”cancelled”
Default - all
Response
{
     "timestamp": "2013-03-13 06:49:19",
     "version": "1.3",
     "type": "success"
     "count": 2
     "data": {
      [
         "id": 987654
         "date": 1471871234
         "description": "Invoice description here"
         "number": "ESI-10987654"
         "type": "file_invoice"
         "price": 123.45
         "amount": 123.45
         "paymentDate": 1471871234
         "currencyId": 5
      ],
      [
         ...
      ]
     }
}