list_invoices

Invoices for the advertiser

Billing.list_invoices(selector=None, **kwargs) → ApiResponse

Get invoices for advertiser. Requires one of these permissions: [“nemo_transactions_view”,”nemo_transactions_edit”]

query invoiceStatuses:string | Optional. Available values : ISSUED, PAID_IN_PART, PAID_IN_FULL, WRITTEN_OFF. (Not documented: ACCUMULATING)

query count:string | Optional. Number of records to include in the paged response. Defaults to 100. Cannot be combined with the cursor parameter.

query cursor:string | Optional. A cursor representing how far into a result set this query should begin. In the absence of a cursor the request will default to start index of 0 and page size of 100.

Returns:

ApiResponse whose payload carries a second layer:

{"status": "success",
 "payload": {"nextCursor": "...", "invoiceSummaries": [...]}}

The invoices sit at res.payload["payload"]["invoiceSummaries"]. Reading res.payload["invoiceSummaries"] gives None, because that key belongs to the inner object.