Uploads a file and attaches it to an invoice.
POST
/v2/invoices/{invoice_id}/attachments
Uploads a file and attaches it to an invoice.
This endpoint accepts HTTP multipart/form-data file uploads with a JSON request
part and a file
part. The file
part must be a readable stream
that contains a file in a supported format: GIF, JPEG, PNG, TIFF, BMP, or PDF.
Invoices can have up to 10 attachments with a total file size of 25 MB. Attachments can be added only to invoices in the DRAFT
, SCHEDULED
, UNPAID
, or PARTIALLY_PAID
state.
The ID of the invoice to attach the file to.
A unique string that identifies the CreateInvoiceAttachment
request. For more information, see Idempotency.