View Details of an Ongoing Credit Promotion

get

/metering/api/v1/promotions/{accountId}/{promotionId}

Retrieve details of a specific ongoing credit promotion.

Request

Path Parameters
Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : Promotions
Type: object
Title: Promotions
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Promotion
Type: object
Title: Promotion
Show Source
Nested Schema : balanceModifiedOn
Type: object
Nested Schema : createdOn
Type: object
Nested Schema : endDate
Type: object
Nested Schema : entitlementIds
Type: array
Show Source
Nested Schema : estimatedBalanceUpdatedOn
Type: object
Nested Schema : modifiedOn
Type: object
Nested Schema : startDate
Type: object
Nested Schema : subscriptionIds
Type: array
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : items
Type: array
Show Source

Default Response

Unexpected error.
Back to Top

Examples

cURL Command

The following example shows how to retrieve information about an ongoing promotion for a given account by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.

Enter the command on a single line. Line breaks are used in this example for readability.

curl -X GET 
     -u joe@example.com 
     -H "X-ID-TENANT-NAME:myDomain" 
     "https://itra.oraclecloud.com/metering/api/v1/promotions/a4357534/7828316295"

Example of Request Body

There is no request body to submit with the HTTP request.

Example of Response Body

The following example shows the response body in JSON format.

{
    "items": [
        {
            "canonicalLink": "/metering/api/v1/promotions/a4357534",
            "id": 7828316295,
            "sourcePromotionId": 513347619,
            "amount": 260,
            "duration": "30",
            "currencyUnit": "EUR",
            "durationUnit": "DAY",
            "description": "order promotion",
            "balance": 260,
            "balanceModifiedOn": "2017-06-09T18:09:46.649Z",
            "startDate": "2017-06-09T18:11:33.087Z",
            "endDate": "2017-07-09T18:11:32.726Z",
            "createdOn": "2017-06-09T18:09:46.649Z",
            "modifiedOn": "2017-06-09T18:09:46.649Z",
            "estimatedBalance": 260,
            "estimatedBalanceUpdatedOn": "2017-06-09T18:09:46.649Z",
            "accountName": "a4357534",
            "status": "ACTIVE",
            "entitlementIds": [
                "7827913035",
                "7827914849",
                "7827929453",
                "7827932267",
                "7827933680"
            ],
            "subscriptionIds": [
                "1479994",
                "1479993",
                "1479981",
                "1479989",
                "1479995"
            ]
        }
    ]
}
Back to Top