Get active Plan Details
    • 16 Jul 2023
    • 1 Minute to read
    • Dark
      Light
    • PDF

    Get active Plan Details

    • Dark
      Light
    • PDF

    Article Summary

    Get a list of active plans in C3 instance

    URL

    GET https://contoso-prod-api.azurewebsites.net/api/plans/downloadDetails

    Request headers

    Key

    Value

    Authorization

    Bearer <access_token>

    Content-Type

    Application/json

    Request body

    The request doesn’t require any parameters / body

    Response body

    An example response for the request to get active customers is as follows:

    {
    
        "OperationType": null,
    
        "Status": "Success",
    
        "RequestCorrelationID": "74fdd689-6374-4b65-b626-f100939f5d57",
    
        "ErrorMessage": null,
    
        "ErrorDetail": null,
    
        "Data": [
    
            {
    
                "Name": "Azure Discount 00.0%",
    
                "Description": "Azure Discount 00.0%",
    
                "ParentPlanId": null,
    
                "InternalPlanId": "654EE57B-1234-4B4A-BD8A-A789636B88F1",
    
                "CurrencyCode": "USD",
    
                "PlanStatus": "Success",
    
                "MacroDetails": null,
    
                "MacroValue": null,
    
                "IsPublic": false,
    
                "ShareableUrl": null,
    
                "PurchaseCurrency": "PlanCurrency (USD)",
    
                "InvoiceCurrency": "PlanCurrency (USD)"
    
            },

    Here is the explanation for the properties in the response (JSON) 

    Property

    Description

    OperationType

    Can be ignored

    Status

    Indicates the status of the request. Possible values – Success / Error

    RequestCorrelationID

    Internal ID generated by C3 for correspondence for troubleshooting issues, if any.

    ErrorMessage

    Message in case the request runs into an error during processing

    ErrorDetail

    Additional detail related to the error in case there is an error while processing the request

    Data

    Contains a list of customer objects represented by the following attributes:

    Attribute

    Description

    Name

    Name of plan defined in C3

    Description

    Description of the plan defined

    ParentPlanId

    Unique identifier for the Source Plan in C3 (if current plan is cloned from any plan)

    InternalPlanId

    Unique identifier for the Plan in C3

    PlanStatus

    Current Status of plan

    Possible Values are

    MacroDetails

    Macro applied on the plan (if any)

    MacroValue

    Value of the Macro (if applied on the plan)

    IsPublic

    Is plan publicly available or not
    Possible Values: True/False

    ShareableUrl

    URL (Shows only is IsPublic is set to True)

    PurchaseCurrency

    Currency in which offer is available for end customer

    InvoiceCurrency

    Currency in which customer is getting invoices


    Was this article helpful?