Public/Subscriptions/Get-Pax8SubscriptionHistoryById.ps1

function Get-Pax8SubscriptionHistoryById {
    [CmdletBinding()]
    param (
        [Parameter(Mandatory)]
        [ValidateScript({
                try {
                    [System.Guid]::Parse($_) | Out-Null; $true
                } catch {
                    $PSCmdlet.ThrowTerminatingError($_)
                }
            })]
        [string]$subscriptionId
    )
    
    $endPoint = "subscriptions/$($subscriptionId)/history"
    Invoke-Pax8GetRequest -Arguments $PSBoundParameters -EndPoint $endPoint
}