Skip to the page

List invoices

What the workspace has been charged, newest first.

opensend billing invoices
Needs the scopeworkspace:read
Only reads

This method takes no input.

Returns

The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. Output and scripts lists the codes.

  • object"list"

    Always list.

  • dataobject[]

    The invoices of the workspace, newest first.

  • data[].object"invoice"

    Always invoice.

  • data[].idstring

    The id of the invoice.

  • data[].numberstring

    The number printed on the invoice.

  • data[].createdAtstring

    When the invoice was issued.

  • data[].amountCentsinteger

    The amount, in cents.

  • data[].currencystring

    The currency of the amount.

  • data[].paidboolean

    Whether it has been paid.

  • data[].productstring

    What the invoice is for.