View Credit Promotions for an Account
get
/metering/api/v1/promotions/{accountId}
Retrieve details of all ongoing credit promotions for an account.
Request
Path Parameters
-
accountId: string
Account name starts with cacct.
Query Parameters
-
entitlementIds: string
Comma separated list of service entitlement Id.
-
promotionIds: string
Comma separated list of promotion id.
-
sourcepromotionIds: string
Comma separated list of sourcePromotionId.
-
subscriptionIds: string
Comma separated list of subscription id.
Response
Supported Media Types
- application/vnd.com.oracle.oraclecloud.metering.promotions+json
200 Response
Success
Nested Schema : Promotion
Type:
objectTitle:
Show Source
Promotion-
accountName(optional):
string
-
amount(optional):
number
-
balance(optional):
number
-
balanceModifiedOn(optional):
object balanceModifiedOn
-
balanceUnit(optional):
string
-
canonicalLink(optional):
string
-
createdOn(optional):
object createdOn
-
currencyUnit(optional):
string
-
description(optional):
string
-
duration(optional):
string
-
durationUnit(optional):
string
-
endDate(optional):
object endDate
-
entitlementIds(optional):
array entitlementIds
-
estimatedBalance(optional):
number
-
estimatedBalanceUpdatedOn(optional):
object estimatedBalanceUpdatedOn
-
id(optional):
number
-
modifiedOn(optional):
object modifiedOn
-
sourcePromotionId(optional):
number
-
startDate(optional):
object startDate
-
status(optional):
string
-
subscriptionIds(optional):
array subscriptionIds
Nested Schema : balanceModifiedOn
Type:
objectNested Schema : createdOn
Type:
objectNested Schema : endDate
Type:
objectNested Schema : estimatedBalanceUpdatedOn
Type:
objectNested Schema : modifiedOn
Type:
objectNested Schema : startDate
Type:
objectDefault Response
Unexpected error.
Examples
These APIs are deprecated. See Cost Analysis Overview, Using the API for more information on how to track and optimize your Oracle Cloud Infrastructure spending. See the Deprecated Notices (Endpoints) to see if there is a replacement endpoint.