Pax8API/Public/Partner/Get-Pax8SubscriptionHistoryById.ps1

<#
.SYNOPSIS
Get Subscription History
.DESCRIPTION
Returns a list of changes for a subscription
OpenAPI: GET /subscriptions/{subscriptionId}/history
Scope: Partner. Audience: https://api.pax8.com.
.PARAMETER SubscriptionId
path parameter 'subscriptionId'.
.PARAMETER Raw
Returns the unmodified API response instead of unwrapping paginated content.
.EXAMPLE
Get-Pax8SubscriptionHistoryById -SubscriptionId 'value'
.LINK
https://devx.pax8.com/openapi/partner-endpoints.json
#>

function Get-Pax8SubscriptionHistoryById {
    [CmdletBinding()]
    param (
        [Parameter(Mandatory = $true)]
        [string]$SubscriptionId,

        [switch]$Raw
    )

    process {
        $boundParameters = @{}
        foreach ($entry in $PSBoundParameters.GetEnumerator()) {
            $boundParameters[$entry.Key] = $entry.Value
        }

        Invoke-Pax8ApiOperation -CommandName $MyInvocation.MyCommand.Name -Parameters $boundParameters
    }
}

Set-Alias -Name 'Get-Pax8SubscriptionHistory' -Value 'Get-Pax8SubscriptionHistoryById'