Manage customer accounts - Get Entitlements
GET https://api.partnercenter.microsoft.com/V1/customers/{customer_id}/entitlements
GET https://api.partnercenter.microsoft.com/V1/customers/{customer_id}/entitlements?entitlementtype={entitlementtype}&showExpiry={showExpiry}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
customer_id
|
path | True |
string |
The customer Id. |
entitlementtype
|
query |
string |
The Entitlement Type. |
|
show
|
query |
boolean |
Flag to show expiry date for each asset. |
Request Header
Name | Required | Type | Description |
---|---|---|---|
Authorization | True |
string |
Authorization Bearer token |
ms-correlationid |
string |
Used for tracking requests internally. If a ms-correlationid is not provided, the server will generate a new one for each request |
|
ms-cv |
string |
Used for tracking requests internally. If a ms-cv is not provided, the server will generate a new one for each request |
|
ms-requestid |
string |
Used for idempotency of requests. If a ms-requestid is not provided, the server will generate a new one for each request |
Responses
Name | Type | Description |
---|---|---|
200 OK |
The request succeeded. The response body contains entitlements. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definitions
Microsoft.Partner.Core.Collections.Link
Name | Type | Description |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
Name | Type | Description |
---|---|---|
etag |
string |
|
objectType |
string |
Microsoft.Partner.Core.Collections.ResourceCollection[Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.Entitlement]
Name | Type | Description |
---|---|---|
attributes | ||
items |
Microsoft. |
|
links | ||
totalCount |
integer |
Microsoft.Partner.Core.Collections.ResourceLinks
Name | Type | Description |
---|---|---|
next | ||
previous | ||
self |
Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.Artifact
Name | Type | Description |
---|---|---|
artifactType |
enum:
|
|
dynamicAttributes |
object |
Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.Entitlement
Name | Type | Description |
---|---|---|
entitledArtifacts |
Microsoft. |
|
entitlementType |
enum:
|
|
expiryDate |
string |
|
fulfillmentState |
string |
|
includedEntitlements |
Microsoft. |
|
minEventDate |
string |
|
productId |
string |
|
quantity |
integer |
|
quantityDetails |
Microsoft. |
|
referenceOrder |
Microsoft. |
|
skuId |
string |
Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.QuantityDetail
Name | Type | Description |
---|---|---|
quantity |
integer |
|
status |
string |
Microsoft.Partner.Fulfillment.Services.ServiceLayer.Models.ReferenceOrder
Name | Type | Description |
---|---|---|
alternateId |
string |
|
id |
string |
|
lineItemId |
string |
System.Collections.Generic.KeyValuePair[System.String,System.String]
Name | Type | Description |
---|---|---|
key |
string |
|
value |
string |