Pax8API/Public/Partner/Get-Pax8ProductPricing.ps1
|
<#
.SYNOPSIS Get Pricing .DESCRIPTION Returns recommended pricing and partner cost for the specified productId. A products pricing is dynamic data. OpenAPI: GET /products/{productId}/pricing Scope: Partner. Audience: https://api.pax8.com. .PARAMETER ProductId The product id .PARAMETER CompanyId Use the companyId in the query to see company-specific pricing .PARAMETER Raw Returns the unmodified API response instead of unwrapping paginated content. .EXAMPLE Get-Pax8ProductPricing -ProductId 'value' .LINK https://devx.pax8.com/openapi/partner-endpoints.json #> function Get-Pax8ProductPricing { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [string]$ProductId, [guid]$CompanyId, [switch]$Raw ) process { $boundParameters = @{} foreach ($entry in $PSBoundParameters.GetEnumerator()) { $boundParameters[$entry.Key] = $entry.Value } Invoke-Pax8ApiOperation -CommandName $MyInvocation.MyCommand.Name -Parameters $boundParameters } } |