Invoices

Request an invoice document upload

Creates a pending invoice document and returns a presigned upload request. Upload the document with every returned upload_headers entry, including Content-Type (the requested filetype), wait until GET /invoices/documents/{merchant_invoice_document_id} reports accepted, then use document_id as merchant_invoice_document_id when creating or updating the invoice.

post/invoices/documents

Request

Request body

filenamestring required

Original filename. The extension must match filetype.

filetype'application/pdf' | 'image/png' | 'image/jpeg' | 'image/jpg' required

MIME type of the invoice document.

Example request

{
  "filename": "invoice.pdf",
  "filetype": "application/pdf"
}

Response

Pending invoice document upload request.

idstring required
document_idstring required

Use as merchant_invoice_document_id after validation succeeds.

urlstring uri required
upload_urlstring uri required
upload_expires_atstring date-time required
object_keystring required
transfer_method'presigned_upload' required
upload_headersobject required
validation_profile'merchant_invoice_document_default' required

Changes

No recorded changes to this operation across all 1 revision of this API.