Skip to end of banner
Go to start of banner

Licenses

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 3 Current »


List of Licenses

Version2.0

Since
Not tracked

Parameters
string$userEmail


Clients can get the list of licenses assigned to user (specified in <email>) using this API.

Request

Method TypeURLAuthorization
GEThttps://domain.tld/api/user/<email>/licenseService, User

Querystrings

Please note that M is for Mandatory and O for Optional.

ParameterM/ODescription
pgOPage number if the results have more items than ipp
ippOMaximum number of result items per page
ServiceMService to which the user belongs.
StatusOFilter the result of a specific status. Possible values are "active", "suspended" and "expired". Defaults to none.
OutputOChoose amount of details to show for each program. Options are "minimal", "normal" and "full". Defaults to "normal"
pidOFilter licenses for a specific product, identified by its "id". Defaults to none
payment_methodOFilter licenses for a specific payment mehtod. Possible values are , 'all', 'credit_card', 'wallet', 'voucher'. Defaults to all
supported_deviceOFilter licenses for a specific device. Possible values are , 'all', 'web', 'mobile', 'tablet', 'tv'. Defaults to all

JSON Response


{
   "license": {
       "resultSet": {
        "totalItems": 1,
        "totalPages": 1,
        "itemsPerPage": 1000,
        "currentPage": 0,
        "offset": 0
    },
    "licenseList": {
        "description": "User licenses",
        "licenses": [
        {
            "id": "1",
            "status": "ACTIVE",
            "startDate": "2013-01-11 16:22:13",
            "stopDate": "2013-01-11 16:22:18",
            "purchaseDate": "2013-01-11 16:22:22",
            "currency": "EUR",
            "paymentMethod": "credit_card",
            "price": 1.0,
            "productUrl": "https://boox.fi/api/user/waqqas.jabbar%40gmail.com/product/2?service=sevice1",
            "recurring": false
        }]
        }
    }
}

JSON Error Codes

Error CodeDescription
307LICENSE_PARAM_INVALID_PG
305LICENSE_PARAM_INVALID_OUTPUT
300LICENSE_PARAM_INVALID_STATUS
301LICENSE_PARAM_INVALID_PRODUCT_ID
312LICENSE_PARAM_INVALID_TYPE
334LICENSE_INVALID_PAYMENT_METHOD
  • No labels