Public/Curanet/Subscriptions/Get-CuranetSubscriptionDetails.ps1

function Get-CuranetSubscriptionDetails() {
    Param(
        [Parameter(Mandatory)]
        [string]$SubscriptionId,
        [Parameter(Mandatory)]
        [ValidateSet("3370", "3850")]
        [string]$Account
    )

    try {
        $Subscription = Invoke-CuranetAPI -Account $Account -Uri "https://api.curanet.dk/subscriptions/v1/Subscriptions/$($SubscriptionId)" -Method GET
    } catch {
        throw "Failed to retreive subscription details from Curanet $($Account) API: $_"
    }

    return $Subscription
}