endpoints/Billing.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<#
  .Synopsis
  Get invoices from Atera
#>

function Get-AteraInvoices {
  return New-AteraGetRequest -Endpoint "/invoices"
}

<#
  .Synopsis
  Get an invoice by the Invoice ID
 
  .Parameter InvoiceNumber
#>

function Get-AteraInvoice {
  param (
    [Parameter(Mandatory)]
    [int] $InvoiceNumber
  )
  return New-AteraGetRequest -Endpoint "/invoices/$InvoiceNumber"
}