Pax8API/Public/Partner/Get-Pax8OrderById.ps1
|
<#
.SYNOPSIS Get Order By ID .DESCRIPTION Returns the Order record specified by OrderId. Currently NOT supported for scheduled orders OpenAPI: GET /orders/{orderId} Scope: Partner. Audience: https://api.pax8.com. .PARAMETER OrderId The unique identifier for an order record .PARAMETER Raw Returns the unmodified API response instead of unwrapping paginated content. .EXAMPLE Get-Pax8OrderById -OrderId 'value' .LINK https://devx.pax8.com/openapi/partner-endpoints.json #> function Get-Pax8OrderById { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [string]$OrderId, [switch]$Raw ) process { $boundParameters = @{} foreach ($entry in $PSBoundParameters.GetEnumerator()) { $boundParameters[$entry.Key] = $entry.Value } Invoke-Pax8ApiOperation -CommandName $MyInvocation.MyCommand.Name -Parameters $boundParameters } } |