mba-cli invoice

4 commands

Read invoices

Synopsis#

bash
mba-cli invoice <command> [flags]

Available commands#

mba-cli invoice account-invoicesList invoices for one billing account
List invoices for a billing account Returns the invoices for one billing account (`id` in the path), scoped to the tenant identified by the API key. Paginated: use `page`/`limit` or `paginate=false`. Related: `Retrieve a billing account`, `List invoices`. List invoices for one billing account
--account-idstringBilling account id
--allbool = falseReturn all rows (paginate=false)
--booking-idsstringQuery parameter bookingIds (from the API spec)
--collection-methodstringQuery parameter collectionMethod (from the API spec)
--currencystringQuery parameter currency (from the API spec)
--from-datestringQuery parameter fromDate (from the API spec)
--has-subscriptionboolQuery parameter hasSubscription (from the API spec)
--idsstringQuery parameter ids (from the API spec)
--limitint = 20Query parameter limit (from the API spec)
--orderstringQuery parameter order (from the API spec)
--originstringQuery parameter origin (from the API spec)
--pageint = 1Query parameter page (from the API spec)
--paginatebool = trueQuery parameter paginate (from the API spec)
--searchstringQuery parameter search (from the API spec)
--sortstringQuery parameter sort (from the API spec)
--statestringQuery parameter state (from the API spec)
--subscription-idsstringQuery parameter subscriptionIds (from the API spec)
--to-datestringQuery parameter toDate (from the API spec)
--typestringQuery parameter type (from the API spec)
mba-cli invoice getGet one invoice by id
Retrieve an invoice by id Returns the invoice with the given `invoiceId` for the tenant identified by the API key. Related: `List invoices`. Get one invoice by id
--idstringInvoice id
mba-cli invoice get-by-numberGet one invoice by invoice number
Retrieve an invoice by number Returns the invoice with the given `invoiceNumber`. Invoice numbers are unique per tenant. Related: `Retrieve an invoice by id`, `List invoices`. Get one invoice by invoice number
--numberstringInvoice number with prefix (e.g. INVCS-1843)
mba-cli invoice lsList invoices across billing accounts
List invoices Returns the invoices across the tenant's billing accounts. Paginated: use `page`/`limit` or `paginate=false`. To count without fetching rows, request `limit=1` and read `metadata.total`. Related: `Retrieve an invoice by id`, `Retrieve an invoice by number`. List invoices across billing accounts
--allbool = falseReturn all rows (paginate=false)
--booking-idsstringQuery parameter bookingIds (from the API spec)
--collection-methodstringQuery parameter collectionMethod (from the API spec)
--currencystringQuery parameter currency (from the API spec)
--from-datestringQuery parameter fromDate (from the API spec)
--has-subscriptionboolQuery parameter hasSubscription (from the API spec)
--idsstringQuery parameter ids (from the API spec)
--limitint = 20Query parameter limit (from the API spec)
--orderstringQuery parameter order (from the API spec)
--originstringQuery parameter origin (from the API spec)
--pageint = 1Query parameter page (from the API spec)
--paginatebool = trueQuery parameter paginate (from the API spec)
--searchstringQuery parameter search (from the API spec)
--sortstringQuery parameter sort (from the API spec)
--statestringQuery parameter state (from the API spec)
--subscription-idsstringQuery parameter subscriptionIds (from the API spec)
--to-datestringQuery parameter toDate (from the API spec)
--typestringQuery parameter type (from the API spec)
Was this page helpful?