/purchases: Purchases

URL:
https://[root]/portals/[portalID]/purchases
Methods:
GET

Example usage

The following is a sample ArcGIS Online request URL used to access the purchases resource:

Use dark colors for code blocksCopy
1
https://org.arcgis.com/sharing/rest/portals/0123456789ABCDEF/purchases?status=all&f=pjson

Description

The purchases resource returns a list of purchases, trials, and interests expressed by this organization for items in the marketplace.

Request parameters

ParameterDetails

status

Status of the listings to be returned. The default value is active. Accepted values are:

  • active: Only listings that are currently active will be returned
  • expired: Only listings that have already expired will be returned
  • all: Both active and expired listings will be returned

Values: active | expired | all

f

The response format. The default format is html.

Values: html | json | pjson

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  "purchases": [
    {
      "provision": {<purchaseProvision1>},
      "listing": {<purchasedListing1>}
    },
    {
      "provision": {<purchaseProvision2>},
      "listing": {<purchasedListing2>}
    }
  ],
  "trials": [
    {
      "provision": {<trialProvision1>},
      "listing": {<trialListing1>}
    },
    {
      "provision": {<trialProvision2>},
      "listing": {<trialListing2>}
    }
  ],
  "interests": [
    {
      "provision": {<interestProvision1>},
      "listing": {<interestedListing1>}
    },
    {
      "provision": {<interestProvision2>},
      "listing": {<interestedListing2>}
    }
  ]
}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
  "purchases": [
    {
      "provision": {
        "itemId": "140d7c7f363349848df8d388f23feb20",
        "orgId": "org1",
        "purchaserOrgId": "org2",
        "purchaserUsername": "org2user",
        "purchaserFullName": "Test Full Name",
        "purchaserEmail": "test@email.com",
        "purchaserPhone": null,
        "startDate": 1378227269000,
        "endDate": -1,
        "purchased": true,
        "trial": false,
        "interested": false,
        "created": 1378227262000,
        "modified": 1378227269000
      },
      "listing": {
        "itemId": "140d7c7f363349848df8d388f23feb20",
        "licenseType": "free",
        "priceDesc": "free",
        "creditsPerTransaction": 0,
        "listingAccess": "public",
        "trialSupported": true,
        "trialDuration": 30,
        "type": "Application",
        "typeKeywords": [
          "Application",
          "Registered App",
          "Listed"
        ],
        "title": "app1",
        "tags": [],
        "thumbnail": "thumbnail/Tulips.jpg",
        "appCategories": [],
        "industries": [],
        "languages": [],
        "largeThumbnail": "largethumbnail/thumb.jpg",
        "banner": "banner/banner.jpg",
        "screenshots": [
          "screenshots/ss1.jpg",
          "screenshots/ss2.jpg"
        ],
        "owner": "org1user",
        "created": 1361473322000,
        "avgRating": 4.0,
        "numComments": 3,
        "numRatings": 11,
        "vendor": {
          "id": "org1",
          "name": "Org 1"
        }
      }
    }
  ],
  "trials": [],
  "interests": []
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.