Public/Products/Get-Pax8ProductPricing.ps1

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