Getting third-party product entitlements
Overview
To get the third-party product entitlements for an account, the self-care portal calls the regular CRM Gateway GET entitlements endpoint and filters the response by entitlement type.
Request
To get third-party product entitlements, the self-care portal should make the following GET request:
https://<host>:<port>/crm-gateway/v1/rmg/v1/entitlements?filter={"productType": "THIRDPARTY"}
Headers
x-correlation-id
– identifier for logging, to correlate messages across a call flowAuthorization
– Keycloak access token (see Accessing operator APIs using Keycloak)Content-Type: application/json
Mandatory arguments
For this use case, you must add a filter
query to filter the results to only include entitlements with a productType
of THIRDPARTY
.
Other arguments
The following arguments are all part of the query:
limit
– the number of records to returnpage
– the page number to return (cannot be used withoutlimit
)
For example:?limit=10
returns the first 10 recordings.?limit=10&page=2
returns the second 10 recordings.
sort
– the sort order of the returned entitlement. It takes the following format (MongoDB sort syntax):{<field_name>, <order>}
, where order is either1
(ascending) or-1
(descending).fields
– the fields to include in the response
Response
A successful request returns an HTTP 200 status.
A bad request returns an HTTP 400 status.
A forbidden request (invalid token) returns an HTTP 403 status.
If the specified tenant or entitlement does not exist, the request returns an HTTP 404 status.
See the CRM Gateway API documentation for the specific error codes and their meanings.