Retrieve a Subscription

GET /v1/customers/{customerId}/subscriptions/{subscriptionId}

Retrieves a Subscription with the specified GUID identifier.

Headers

  • X-Tenant string Required

    The domain used to access the portal.

  • Authorization string Required

    JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

    Default value is Bearer eyJ0eXAiO....

  • X-Correlation-Id string(UUID)

    This header is optional and by setting it you can correlate the audit logs made by this request.

Path parameters

  • customerId string(uuid) Required

    GUID Unique identifier for the customer. The subscription must belong to this customer, otherwise this request will fail.

  • subscriptionId string(uuid) Required

    GUID Unique identifier for the subscription.

Responses

  • OK

    Hide response attributes Show response attributes object
    • id string(uuid)

      The id of the subscription.

    • customerId string(uuid)

      The customer id of the subscription.

    • The provider instance id of the subscription.

    • resellerId string(uuid) | null

      The reseller id of the subscription.

    • name string | null

      The friendly name of the subscription.

    • The provider subscription identifier.

    • status object

      Additional properties are NOT allowed.

      Hide status attribute Show status attribute object
      • name string | null

        The name of the enumeration.

    • startDate string(date-time)

      The start date of the subscription.

    • endDate string(date-time)

      The end date of the subscription.

    • cancellationAllowedUntil string(date-time) | null

      The limit date to cancelled the subscription.

    • quantity integer(int32)

      The quantity of the subscription.

    • The term duration for this entity. Possible values: NoTerm, OneMonth, OneYear, ThreeYears or FiveYears

      Additional properties are NOT allowed.

      Hide termDuration attribute Show termDuration attribute object
      • name string | null

        The name of the enumeration.

    • The billing frequency for this entity. Possible values: OneTime, Monthly, Annual, Triennial or None

      Additional properties are NOT allowed.

      Hide billingFrequency attribute Show billingFrequency attribute object
      • name string | null

        The name of the enumeration.

    • Additional properties are NOT allowed.

      Hide nextBillingFrequency attributes Show nextBillingFrequency attributes object
      • scheduledDate string(date-time) | null

        The schedule date to change billing frequency, it is also the current billing cycle end date

      • The billing frequency for this entity. Possible values: OneTime, Monthly, Annual, Triennial or None

        Additional properties are NOT allowed.

        Hide billingFrequency attribute Show billingFrequency attribute object
        • name string | null

          The name of the enumeration.

    • segment object

      The offer segment. Possible values: Commercial, Education, Government or NonProfit

      Additional properties are NOT allowed.

      Hide segment attribute Show segment attribute object
      • name string | null

        The name of the enumeration.

    • true if [automatic renew enabled]; otherwise, false.

    • Additional properties are NOT allowed.

      Hide autoRenewSettings attributes Show autoRenewSettings attributes object
      • term object Required

        The term duration for this entity. Possible values: NoTerm, OneMonth, OneYear, ThreeYears or FiveYears

        Additional properties are NOT allowed.

        Hide term attribute Show term attribute object
        • name string | null

          The name of the enumeration.

      • billingFrequency object Required

        The billing frequency for this entity. Possible values: OneTime, Monthly, Annual, Triennial or None

        Additional properties are NOT allowed.

        Hide billingFrequency attribute Show billingFrequency attribute object
        • name string | null

          The name of the enumeration.

      • quantity integer(int32) | null Required

        The quantity

      • customTermEndDate string(date-time) | null

        The custom term end date

    • margin object

      This value object contains the price margin for this entity.

      Additional properties are NOT allowed.

      Hide margin attributes Show margin attributes object
      • marginRule object Required

        The margin rule applied. Possible values: Markup, Margin, SplitMargin or ErpMinusDiscount

        Additional properties are NOT allowed.

        Hide marginRule attribute Show marginRule attribute object
        • name string | null

          The name of the enumeration.

      • value number(double) | null Required

        The value applied to this price margin. Should not be below 0 or above 999.

    • internalId string | null

      The internal identifier.

    • poNumber string | null

      The po number.

    • offer object

      View model that represents an Offer.

      Additional properties are NOT allowed.

      Hide offer attributes Show offer attributes object
      • id string(uuid)

        The id of the offer.

      • name string | null

        The name of the offer.

      • description string | null

        The offer description.

      • imageUrl string | null

        The offer image URL.

      • The offer type. Possible values: License, LicenseLegacy, SoftwareSubscription, PerpetualSoftware, AzurePlan, AzureReservation, AzureLegacy or AzureSavingsPlan.

        Additional properties are NOT allowed.

        Hide offerType attribute Show offerType attribute object
        • name string | null

          The name of the enumeration.

      • The billing type for the offer. Possible values: License, Usage or None

        Additional properties are NOT allowed.

        Hide billingType attribute Show billingType attribute object
        • name string | null

          The name of the enumeration.

      • prices array[object] | null

        The offer prices.

        View model that represents an offer price.

        Hide prices attributes Show prices attributes object
        • The term duration for this entity. Possible values: NoTerm, OneMonth, OneYear, ThreeYears or FiveYears

          Additional properties are NOT allowed.

          Hide termDuration attribute Show termDuration attribute object
          • name string | null

            The name of the enumeration.

        • segment object

          The offer segment. Possible values: Commercial, Education, Government or NonProfit

          Additional properties are NOT allowed.

          Hide segment attribute Show segment attribute object
          • name string | null

            The name of the enumeration.

        • region object

          Additional properties are NOT allowed.

          Hide region attribute Show region attribute object
          • value string | null

            The value that represents a country in standard ISO 3166-1 alpha-2. The value contains only two letters in uppercase format. This standard is available at https://www.iban.com/country-codes.

        • billingFrequencies array[object] | null

          The offer price Billing Frequencies.

          The billing frequency for this entity. Possible values: OneTime, Monthly, Annual, Triennial or None

          Hide billingFrequencies attribute Show billingFrequencies attribute object
          • name string | null

            The name of the enumeration.

        • Additional properties are NOT allowed.

          Hide costPrice attributes Show costPrice attributes object
          • value number(double)

            The price value.

          • currency object

            Additional properties are NOT allowed.

            Hide currency attribute Show currency attribute object
            • name string | null

              The name of the currency.

        • Additional properties are NOT allowed.

          Hide revenuePrice attributes Show revenuePrice attributes object
          • value number(double)

            The price value.

          • currency object

            Additional properties are NOT allowed.

            Hide currency attribute Show currency attribute object
            • name string | null

              The name of the currency.

        • erpPrice object

          Additional properties are NOT allowed.

          Hide erpPrice attributes Show erpPrice attributes object
          • value number(double)

            The price value.

          • currency object

            Additional properties are NOT allowed.

            Hide currency attribute Show currency attribute object
            • name string | null

              The name of the currency.

      • providerName string | null

        The offer provider name.

      • providerInstanceId string(uuid) | null

        The provider's instance identifier.

      • isAddon boolean

        The value indicating whether this offer is addon.

      • minQuantity integer(int32)

        The minimum quantity for this offer.

      • maxQuantity integer(int32)

        The maximum quantity for this offer.

      • The value indicating whether this offer has pre requisite offers.

      • preRequisites array[string] | null

        The list of pre requisite offers ids.

      • isTrial boolean

        The value indicating whether this offer is a trial.

      • providerOfferId string | null

        The provider's offer identifier.

      • isDeleted boolean

        A Value indicating whether this offer is deleted and cannot be provisioned.

    • View model that represents an offer price.

      Additional properties are NOT allowed.

      Hide offerPrice attributes Show offerPrice attributes object
      • The term duration for this entity. Possible values: NoTerm, OneMonth, OneYear, ThreeYears or FiveYears

        Additional properties are NOT allowed.

        Hide termDuration attribute Show termDuration attribute object
        • name string | null

          The name of the enumeration.

      • segment object

        The offer segment. Possible values: Commercial, Education, Government or NonProfit

        Additional properties are NOT allowed.

        Hide segment attribute Show segment attribute object
        • name string | null

          The name of the enumeration.

      • region object

        Additional properties are NOT allowed.

        Hide region attribute Show region attribute object
        • value string | null

          The value that represents a country in standard ISO 3166-1 alpha-2. The value contains only two letters in uppercase format. This standard is available at https://www.iban.com/country-codes.

      • billingFrequencies array[object] | null

        The offer price Billing Frequencies.

        The billing frequency for this entity. Possible values: OneTime, Monthly, Annual, Triennial or None

        Hide billingFrequencies attribute Show billingFrequencies attribute object
        • name string | null

          The name of the enumeration.

      • Additional properties are NOT allowed.

        Hide costPrice attributes Show costPrice attributes object
        • value number(double)

          The price value.

        • currency object

          Additional properties are NOT allowed.

          Hide currency attribute Show currency attribute object
          • name string | null

            The name of the currency.

      • Additional properties are NOT allowed.

        Hide revenuePrice attributes Show revenuePrice attributes object
        • value number(double)

          The price value.

        • currency object

          Additional properties are NOT allowed.

          Hide currency attribute Show currency attribute object
          • name string | null

            The name of the currency.

      • erpPrice object

        Additional properties are NOT allowed.

        Hide erpPrice attributes Show erpPrice attributes object
        • value number(double)

          The price value.

        • currency object

          Additional properties are NOT allowed.

          Hide currency attribute Show currency attribute object
          • name string | null

            The name of the currency.

    • providerData string | null

      The subscription provider data.

  • Bad Request

    Hide response attributes Show response attributes object
    • statusCode integer(int32)

      The HTTP status code that represents a specific error scenario.

    • type string | null

      The type of error that occurred.

    • description string | null

      Describes the error scenario that occurred.

    • correlationId string | null

      The correlationId of the request that originated the error.

    • errors array[object] | null

      A list containing the detail of the errors that occurred in this error scenario.

      This class is used to represent the details of an error and specifies the name of the property and the description of each of the errors associated with that property.

      Hide errors attributes Show errors attributes object
      • propertyName string | null

        The name of the property involved in the error.

      • description array[string] | null

        A description of each error associated with the given property.

  • Unauthorized

  • Forbidden

  • Internal Server Error

    Hide response attributes Show response attributes object
    • statusCode integer(int32)

      The HTTP status code that represents a specific error scenario.

    • type string | null

      The type of error that occurred.

    • description string | null

      Describes the error scenario that occurred.

    • correlationId string | null

      The correlationId of the request that originated the error.

    • errors array[object] | null

      A list containing the detail of the errors that occurred in this error scenario.

      This class is used to represent the details of an error and specifies the name of the property and the description of each of the errors associated with that property.

      Hide errors attributes Show errors attributes object
      • propertyName string | null

        The name of the property involved in the error.

      • description array[string] | null

        A description of each error associated with the given property.

GET /v1/customers/{customerId}/subscriptions/{subscriptionId}
curl \
 --request GET 'https://app-cloudcockpitapi-prod-01.azurewebsites.net/v1/customers/{customerId}/subscriptions/{subscriptionId}' \
 --header "X-Tenant: portal.cloudcockpit.com" \
 --header "Authorization: Bearer eyJ0eXAiO..." \
 --header "X-Correlation-Id: string"