Product Entitlement Customer Experience API

(0 reviews)

Use case 2 - Get new download entitlements (made active) since yesterday example

Find and return a list of new download entitlements (made active) since yesterday.

Before you begin

You must do the following before you begin this task:

  • Ensure you are permitted to make calls to the API by following the guidance in the Authentication topic.
  • Import the Postman collection for the API by following the instruction in the Testing topic. You have a choice of using the sandbox or production API instance when setting up the Postman collection. The sandbox API is suitable for testing.

About this task

Arm recommends making this API request daily to detect incremental additions to your entitlement. This API request allows you to check for new download entitlements each day and keep them up to date. Arm recommends you set this API request up to run every day at a set time.

Procedure

  1. Go to the imported Postman collection in your browser.
  2. Click the arrow next to the name of your Postman collection in the left-hand menu to access a drop-down list of methods.resources/arrow%20down-5c150111-d450-4598-a8c5-20147516e283.png
  3. Select the GET /entitlements method.
  4. Enter the following search query parameter VALUE: {"rightTo":"download", "activatedFrom": "2020-02-16"}.This example assumes the date of the search is 17 February 2020. Parameters must be URL-encoded. For more information about URL-encoding, see Sending Parameters. The actual encoded value is: %7B%22rightTo%22%3A%22download%22%2C%20%22activatedFrom%22%3A%20%222020-02-16%22%7D
  5. Click the Send button in the top right of the GET /entitlements window.resources/GET%20new%20entitlements%20since%20yesterday%20callouts-e2a87ad5-bfe3-4865-9011-7049b9e2565a.png

Results

The entitlement response payload contains contextual links to other related resources such as releases.

The following is an example response payload, that contains one free ("characteristics.free": true) entitlement with the right to download ("rightTo": "download"):

{
    "totalNumberOfItems": 1,
    "items": [
        {
            "id": "99",
            "uri": "https://api.arm.com/e-product-entitlement-customer/v1/entitlements/99",
            "customer": {
                "id": "0001006511",
                "name": "Arm Ltd",
                "uri": "https://id.arm.com/customer/0001006511",
                "blocked": false
            },
            "product": {
                "id": "AT511",
                "name": "Cortex-M0 DesignStart Eval",
                "standardDeliveryMethod": "ipDelivery",
                "uri": "https://id.arm.com/product/products/AT511",
                "eula": {
                    "id": "3b34ccb2-4cb8-4499-95a5-5ba220bbe489",
                    "uri": "https://api.arm.com/e-product-entitlement-customer/v1/eula/3b34ccb2-4cb8-4499-95a5-5ba220bbe489"
                }
            },
            "validFrom": "2022-04-27",
            "activationDate": "2022-04-27",
            "validTo": "2026-04-27",
            "status": "active",
            "setupComplete": true,
            "productAvailable": true,
            "characteristics": {
                "free": true,
                "grouped": false,
                "virtual": false,
                "requestAccess": false
            },
            "rightTo": "download",
            "rights": {
                "maintenanceFrom": "2022-04-27",
                "maintenanceTo": "2026-04-28",
                "qualities": [
                    {
                        "quality": "rel"
                    },
                    {
                        "quality": "eac"
                    },
                    {
                        "quality": "lac"
                    }
                ]
            },
            "compliance": {
                "eccnRestricted": false,
                "status": "compliant",
                "allowedCountries": [
                    {
                        "id": "non-sanctioned",
                        "uri": "https://id.arm.com/locations/country-groups/non-sanctioned"
                    }
                ]
            },
            "history": {
                "createdAt": "2022-04-27T10:50:13.13Z",
                "createdBy": "entitlement-admin@arm.com",
                "lastChangedBy": "entitlement-admin@arm.com",
                "lastChangedAt": "2022-04-27T10:50:13.13Z"
            },
            "links": {
                "eula-agreements": "https://api.arm.com/e-product-entitlement-customer/v1/eula/3b34ccb2-4cb8-4499-95a5-5ba220bbe489/agreements",
                "releases": "https://api.arm.com/e-product-entitlement-customer/v1/entitlements/99/releases/",
                "download-history": "https://api.arm.com/e-product-entitlement-customer/v1/entitlements/99/rights/download/history"
            }
        }
    ]
}

Next steps

Go to GET /entitlements in the endpoint SPECIFICATION section for a full description of this API call.


Reviews