This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- FlexNet Operations
- :
- FlexNet Operations Forum
- :
- Re: REST api to get entitlements for a customer
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 11, 2023
10:36 AM
When I POST to /operations/entitlementOrders with body
{
"batchSize": 100,
"pageNumber": 0
}
all I get is:
{ "statusInfo": { "status": "SUCCESS" } }
There's no data coming back from this endpoint. I get the same if I send a query to search for a particular customer eg:
{
"queryParams": {
"accountId": {
"isSearchByName": true,
"searchType": "STARTS_WITH",
"value": "[Customer Name]"
}
}
}
I have replaced the actual customer name.
Is this endpoint supposed to give back data? If I do the same query to the endpoint /operations/entitlementOrders/count I get a response of { "statusInfo": { "status": "SUCCESS" }, "count": 29 } So there are entitlements to list, they just don't get returned.
(1) Solution
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 11, 2023
04:18 PM
Hi @CaMatt1 ,
A couple things ... First be sure to check out the Model for the /entitlementOrders REST Endpoint on the Swagger Page. If you are looking to use "STARTS_WITH" using a portion of the AccountId, the proper format is:
{
"activatableItemSearchCriteria": {
"accountId": {
"searchType": "STARTS_WITH",
"value": "ACME"
}
},
"batchSize": 100,
"pageNumber": 1
}
Also, you have specified a batch size of 100 and have requested page Number 0, which does not have any results. The first page with results is Page 1. A snippet of the response using the call above in my instance:
{
"statusInfo": {
"status": "SUCCESS"
},
"activatableItem": [
{
"activatableItemType": "LINEITEM",
"entitlementId": "ACMESW-ENT-1130",
"soldTo": "ACME_Customer",
"shipToEmail": "",
"shipToAddress": "",
"entitlementState": "DEPLOYED",
"activatableItemData": {
"activationId": {
"id": "3cff-ae31-74a6-47ee-98ce-0724-718b-338f"
}, ...
Best regards,
Jim
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 11, 2023
04:18 PM
Hi @CaMatt1 ,
A couple things ... First be sure to check out the Model for the /entitlementOrders REST Endpoint on the Swagger Page. If you are looking to use "STARTS_WITH" using a portion of the AccountId, the proper format is:
{
"activatableItemSearchCriteria": {
"accountId": {
"searchType": "STARTS_WITH",
"value": "ACME"
}
},
"batchSize": 100,
"pageNumber": 1
}
Also, you have specified a batch size of 100 and have requested page Number 0, which does not have any results. The first page with results is Page 1. A snippet of the response using the call above in my instance:
{
"statusInfo": {
"status": "SUCCESS"
},
"activatableItem": [
{
"activatableItemType": "LINEITEM",
"entitlementId": "ACMESW-ENT-1130",
"soldTo": "ACME_Customer",
"shipToEmail": "",
"shipToAddress": "",
"entitlementState": "DEPLOYED",
"activatableItemData": {
"activationId": {
"id": "3cff-ae31-74a6-47ee-98ce-0724-718b-338f"
}, ...
Best regards,
Jim
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 12, 2023
03:49 AM
Thank you