Pax8API/Public/Partner/Get-Pax8Order.ps1
|
<#
.SYNOPSIS List Orders .DESCRIPTION Returns a paginated list of orders. Currently NOT supported for scheduled orders(orders with a future date). OpenAPI: GET /orders Scope: Partner. Audience: https://api.pax8.com. .PARAMETER Page The page number to request for in the orders list .PARAMETER Size query parameter 'size'. .PARAMETER CompanyId The company id to filter on .PARAMETER Raw Returns the unmodified API response instead of unwrapping paginated content. .EXAMPLE Get-Pax8Order .LINK https://devx.pax8.com/openapi/partner-endpoints.json #> function Get-Pax8Order { [CmdletBinding()] param ( [double]$Page, [ValidateRange(1, 200)] [double]$Size, [guid]$CompanyId, [switch]$All, [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-Pax8Orders' -Value 'Get-Pax8Order' |