Pax8API/Public/Partner/Get-Pax8InvoiceItem.ps1
|
<#
.SYNOPSIS List Invoice Items .DESCRIPTION Fetch a paginated list of invoice items. Default page is 0 and default size is 10. The maximum page size is 200 OpenAPI: GET /invoices/{invoiceId}/items Scope: Partner. Audience: https://api.pax8.com. .PARAMETER InvoiceId The invoice id .PARAMETER Page The page number to request in the invoices items list .PARAMETER Size Returns _this_ number of invoices items per page .PARAMETER Raw Returns the unmodified API response instead of unwrapping paginated content. .EXAMPLE Get-Pax8InvoiceItem -InvoiceId '00000000-0000-0000-0000-000000000000' .LINK https://devx.pax8.com/openapi/partner-endpoints.json #> function Get-Pax8InvoiceItem { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [guid]$InvoiceId, [double]$Page, [ValidateRange(1, 200)] [double]$Size, [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-Pax8InvoiceItems' -Value 'Get-Pax8InvoiceItem' |