Retrieve a Subscription

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

Retrieves a Subscription with the specified GUID identifier.

Headers

  • X-Tenant string Required

    This header identifies which tenant to access with this request. This value should be an existent domain for the specified tenant.

  • 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

GET /v1/customers/{customerId}/subscriptions/{subscriptionId}
curl \
 -X GET https://app-cloudcockpitapi-prod-01.azurewebsites.net/v1/customers/{customerId}/subscriptions/{subscriptionId} \
 -H "X-Tenant: string" \
 -H "Authorization: Bearer eyJ0eXAiO..." \
 -H "X-Correlation-Id: string"
Response examples (200)
{
  "id": "string",
  "customerId": "string",
  "providerInstanceId": "string",
  "resellerId": "string",
  "name": "string",
  "providerSubscriptionId": "string",
  "status": {
    "name": "string"
  },
  "startDate": "2024-05-04T09:42:00+00:00",
  "endDate": "2024-05-04T09:42:00+00:00",
  "cancellationAllowedUntil": "2024-05-04T09:42:00+00:00",
  "quantity": 42,
  "termDuration": {
    "name": "string"
  },
  "billingFrequency": {
    "name": "string"
  },
  "nextBillingFrequency": {
    "scheduledDate": "2024-05-04T09:42:00+00:00",
    "billingFrequency": {
      "name": "string"
    }
  },
  "segment": {
    "name": "string"
  },
  "autoRenewEnabled": true,
  "autoRenewSettings": {
    "term": {
      "name": "string"
    },
    "billingFrequency": {
      "name": "string"
    },
    "quantity": 42,
    "customTermEndDate": "2024-05-04T09:42:00+00:00"
  },
  "margin": {
    "marginRule": {
      "name": "string"
    },
    "value": 42.0
  },
  "internalId": "string",
  "poNumber": "string",
  "offer": {
    "id": "string",
    "name": "string",
    "description": "string",
    "imageUrl": "string",
    "offerType": {
      "name": "string"
    },
    "billingType": {
      "name": "string"
    },
    "prices": [
      {
        "termDuration": {
          "name": "string"
        },
        "segment": {
          "name": "string"
        },
        "region": {
          "value": "string"
        },
        "billingFrequencies": [
          {
            "name": "string"
          }
        ],
        "costPrice": {
          "value": 42.0,
          "currency": {
            "name": "string"
          }
        },
        "revenuePrice": {
          "value": 42.0,
          "currency": {
            "name": "string"
          }
        },
        "erpPrice": {
          "value": 42.0,
          "currency": {
            "name": "string"
          }
        }
      }
    ],
    "providerName": "string",
    "providerInstanceId": "string",
    "isAddon": true,
    "minQuantity": 42,
    "maxQuantity": 42,
    "hasPreRequisites": true,
    "preRequisites": [
      "string"
    ],
    "isTrial": true,
    "providerOfferId": "string",
    "isDeleted": true
  },
  "offerPrice": {
    "termDuration": {
      "name": "string"
    },
    "segment": {
      "name": "string"
    },
    "region": {
      "value": "string"
    },
    "billingFrequencies": [
      {
        "name": "string"
      }
    ],
    "costPrice": {
      "value": 42.0,
      "currency": {
        "name": "string"
      }
    },
    "revenuePrice": {
      "value": 42.0,
      "currency": {
        "name": "string"
      }
    },
    "erpPrice": {
      "value": 42.0,
      "currency": {
        "name": "string"
      }
    }
  },
  "providerData": "string"
}
Response examples (200)
{
  "id": "string",
  "customerId": "string",
  "providerInstanceId": "string",
  "resellerId": "string",
  "name": "string",
  "providerSubscriptionId": "string",
  "status": {
    "name": "string"
  },
  "startDate": "2024-05-04T09:42:00+00:00",
  "endDate": "2024-05-04T09:42:00+00:00",
  "cancellationAllowedUntil": "2024-05-04T09:42:00+00:00",
  "quantity": 42,
  "termDuration": {
    "name": "string"
  },
  "billingFrequency": {
    "name": "string"
  },
  "nextBillingFrequency": {
    "scheduledDate": "2024-05-04T09:42:00+00:00",
    "billingFrequency": {
      "name": "string"
    }
  },
  "segment": {
    "name": "string"
  },
  "autoRenewEnabled": true,
  "autoRenewSettings": {
    "term": {
      "name": "string"
    },
    "billingFrequency": {
      "name": "string"
    },
    "quantity": 42,
    "customTermEndDate": "2024-05-04T09:42:00+00:00"
  },
  "margin": {
    "marginRule": {
      "name": "string"
    },
    "value": 42.0
  },
  "internalId": "string",
  "poNumber": "string",
  "offer": {
    "id": "string",
    "name": "string",
    "description": "string",
    "imageUrl": "string",
    "offerType": {
      "name": "string"
    },
    "billingType": {
      "name": "string"
    },
    "prices": [
      {
        "termDuration": {
          "name": "string"
        },
        "segment": {
          "name": "string"
        },
        "region": {
          "value": "string"
        },
        "billingFrequencies": [
          {
            "name": "string"
          }
        ],
        "costPrice": {
          "value": 42.0,
          "currency": {
            "name": "string"
          }
        },
        "revenuePrice": {
          "value": 42.0,
          "currency": {
            "name": "string"
          }
        },
        "erpPrice": {
          "value": 42.0,
          "currency": {
            "name": "string"
          }
        }
      }
    ],
    "providerName": "string",
    "providerInstanceId": "string",
    "isAddon": true,
    "minQuantity": 42,
    "maxQuantity": 42,
    "hasPreRequisites": true,
    "preRequisites": [
      "string"
    ],
    "isTrial": true,
    "providerOfferId": "string",
    "isDeleted": true
  },
  "offerPrice": {
    "termDuration": {
      "name": "string"
    },
    "segment": {
      "name": "string"
    },
    "region": {
      "value": "string"
    },
    "billingFrequencies": [
      {
        "name": "string"
      }
    ],
    "costPrice": {
      "value": 42.0,
      "currency": {
        "name": "string"
      }
    },
    "revenuePrice": {
      "value": 42.0,
      "currency": {
        "name": "string"
      }
    },
    "erpPrice": {
      "value": 42.0,
      "currency": {
        "name": "string"
      }
    }
  },
  "providerData": "string"
}
Response examples (400)
{
  "statusCode": 42,
  "type": "string",
  "description": "string",
  "correlationId": "string",
  "errors": [
    {
      "propertyName": "string",
      "description": [
        "string"
      ]
    }
  ]
}
Response examples (400)
{
  "statusCode": 42,
  "type": "string",
  "description": "string",
  "correlationId": "string",
  "errors": [
    {
      "propertyName": "string",
      "description": [
        "string"
      ]
    }
  ]
}
Response examples (500)
{
  "statusCode": 42,
  "type": "string",
  "description": "string",
  "correlationId": "string",
  "errors": [
    {
      "propertyName": "string",
      "description": [
        "string"
      ]
    }
  ]
}
Response examples (500)
{
  "statusCode": 42,
  "type": "string",
  "description": "string",
  "correlationId": "string",
  "errors": [
    {
      "propertyName": "string",
      "description": [
        "string"
      ]
    }
  ]
}