Pax8API/Public/Partner/Get-Pax8InvoiceById.ps1
|
<#
.SYNOPSIS Get Invoice By ID .DESCRIPTION Fetch a paginated list of invoices. Default page is 0 and default size is 10. The maximum page size is 200 OpenAPI: GET /invoices/{invoiceId} Scope: Partner. Audience: https://api.pax8.com. .PARAMETER InvoiceId The invoice id .PARAMETER Raw Returns the unmodified API response instead of unwrapping paginated content. .EXAMPLE Get-Pax8InvoiceById -InvoiceId '00000000-0000-0000-0000-000000000000' .LINK https://devx.pax8.com/openapi/partner-endpoints.json #> function Get-Pax8InvoiceById { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [guid]$InvoiceId, [switch]$Raw ) process { $boundParameters = @{} foreach ($entry in $PSBoundParameters.GetEnumerator()) { $boundParameters[$entry.Key] = $entry.Value } Invoke-Pax8ApiOperation -CommandName $MyInvocation.MyCommand.Name -Parameters $boundParameters } } |