API 機能の概要については、Customer Subscriptions API をご覧ください。
このページのリクエストでは、次の変数を使用します。
$TOKEN- OAuth2 トークン$CUSTOMER- 顧客の ID(例:C01234567)またはリテラルmy_customer
お客様の定期購入情報を取得する
お客様のサブスクリプションとライセンスの集計情報を取得します。
リクエスト
curl -H "Authorization: Bearer $TOKEN" \
https://chromemanagement.googleapis.com/v1/customers/$CUSTOMER/subscriptionInfo
my_customer エイリアスを使用して、呼び出し元のドメインのサブスクリプション情報を取得することもできます。
curl -H "Authorization: Bearer $TOKEN" \
https://chromemanagement.googleapis.com/v1/customers/my_customer/subscriptionInfo
レスポンス
{
"name": "customers/$CUSTOMER/subscriptionInfo",
"chromeEnterpriseUpgradeAnnual": {
"counts": {
"totalPurchasedCount": "300",
"assignedCount": "3",
"unassignedCount": "297"
},
"subscriptionEndTime": "2027-08-15T12:00:00Z"
},
"kioskSignageUpgradeAnnual": {
"counts": {
"totalPurchasedCount": "10",
"assignedCount": "4",
"unassignedCount": "6"
},
"subscriptionEndTime": "2027-08-15T12:00:00Z"
},
"chromePerpetualUpgrade": {
"counts": {
"totalPurchasedCount": "10",
"assignedCount": "10",
"unassignedCount": "0"
},
"retiredCount": "2",
"conditionallyAvailableCount": "2"
}
}