Skip to main content

BulkImportInvoicesInput

An invoice import file and its options.

input BulkImportInvoicesInput {
customerId: String
fileContent: String!
format: InvoiceImportFormat!
invoiceType: InvoiceImportType!
updateExisting: Boolean!
validateOnly: Boolean!
}

Fields​

BulkImportInvoicesInput.customerId ● String scalar​

The ID of the customer to assign imported invoices to. An error is reported if no such customer exists.

BulkImportInvoicesInput.fileContent ● String! non-null scalar​

The import file, base64-encoded.

BulkImportInvoicesInput.format ● InvoiceImportFormat! non-null enum​

File format: CSV or EXCEL.

BulkImportInvoicesInput.invoiceType ● InvoiceImportType! non-null enum​

The type of invoice being imported. Defaults to SALES_INVOICE.

BulkImportInvoicesInput.updateExisting ● Boolean! non-null scalar​

When true, rows that match an existing invoice update it. Defaults to false.

BulkImportInvoicesInput.validateOnly ● Boolean! non-null scalar​

When true (the default) the file is only checked and nothing is created or changed.

Member Of​

bulkImportInvoices mutation