Invoice Requests
object InvoiceRequests
Holds request body models for invoice API operations.
Types
Link copied to clipboard
data class CreateInvoiceRequest(val collectionMethod: InvoiceCollectionMethod, val netTerms: Int?, val lineItems: List<LineItem>?, val customer: String? = null, val account: String? = null, val dueDate: String? = null, val number: String?, val description: String?, val memo: String?, val metadata: Map<String, String>?)
Request body for creating a new invoice.
Link copied to clipboard
data class UpdateInvoiceRequest(val collectionMethod: InvoiceCollectionMethod? = null, val netTerms: Int? = null, val lineItems: List<LineItem>? = null, val dueDate: String? = null, val autoAdvance: Boolean? = null, val number: String? = null, val description: String? = null, val memo: String? = null, val metadata: Map<String, String>? = null)
Request body for updating an existing invoice.