GetInvoices

data class GetInvoices(val perPage: Int? = null, val page: Int? = null, val customer: String? = null, val account: String? = null, val status: InvoiceStatus? = null) : InvoiceEndpoints

Endpoint for retrieving a paginated, optionally filtered list of invoices (GET /v1/invoices).

Constructors

Link copied to clipboard
constructor(perPage: Int? = null, page: Int? = null, customer: String? = null, account: String? = null, status: InvoiceStatus? = null)

Properties

Link copied to clipboard
val account: String? = null

The account ID to filter results by.

Link copied to clipboard
val customer: String? = null

The customer ID to filter results by.

Link copied to clipboard
open override val endpointURL: String

The URL path for this endpoint.

Link copied to clipboard
open override val httpMethod: String

The HTTP method for this endpoint.

Link copied to clipboard
val page: Int? = null

The page number to retrieve.

Link copied to clipboard
val perPage: Int? = null

The number of results to return per page.

Link copied to clipboard
open override val queryItems: List<QueryItem>?

The query parameters to append to the request URL, or null if none apply.

Link copied to clipboard
val status: InvoiceStatus? = null

The InvoiceStatus to filter results by.