DocumentCreateRequest
RequestSent in requests. Its values are closed: anything not listed is refused.
Attributes
2The document to create.
6 attributes of data
The date printed on the document, when known (not the upload date).
What the document is. Stored as stated by the caller, so a later OCR reading does not replace it. Only the kinds a received document can be; the app's own sales documents are not created here.
One of invoice, credit_note, receipt, tax_notice, account_statement, delivery_note, contract, other
What a create does when a document already holds the sent external_ref. error: 409 EXTERNAL_REF_EXISTS with existing_id. return: 200 with that document, and a fresh upload URL while its upload is still awaited. A document's bytes never change, so there is no update.
One of error, return