Public/Receipts/Invoke-AspireReceiptReceive.ps1
|
<#
.SYNOPSIS Receives a receipt in the Aspire API. .DESCRIPTION Uses Invoke-AspireRequest to perform a POST request to the /Receipts/Receive endpoint. .PARAMETER ReceiptID The ID of the receipt to receive (required). .OUTPUTS The response from the API. .EXAMPLE Invoke-AspireReceiptReceive -ReceiptID 123 #> function Invoke-AspireReceiptReceive { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [int]$ReceiptID ) $body = @{ ReceiptID = $ReceiptID } return Invoke-AspireRequest -Method POST -Path "/Receipts/Receive" -Body $body -ApiVersion $null } |