Skip to main content

DocumentRequestDto

Request model for Document entity.

externalInvoiceIdstringrequired

The internal invoice identifier within your system.

Possible values: non-empty

Example: F50015
externalPurchaserIdstringnullable

Unique identifier of the purchaser within your system

Example: MKR
externalApproverIdstringnullable

Unique identifier of the first approver in the workflow

Example: Jack Petterson
externalBuyerIdstringnullable

Unique identifier of the buyer entity within your system.

Example: Buyer-X
externalVendorIdstringnullable

Unique identifier of the vendor within your system

Example: Vendor-X
document objectrequired

Request model for Attachment entity.

fileNamestringrequired

The filename including file ending.

Possible values: non-empty

Example: Invoice001.pdf
mimeTypestringrequired

The mimetype/media type of the file

Possible values: non-empty

Example: application/pdf
contentAsBase64EncodedStringstringrequired

The base64-encoded representation of file contents.

Possible values: non-empty

Example: JVBERi0xLjMKJcTl8uXrp...
DocumentRequestDto
{
"externalInvoiceId": "F50015",
"externalPurchaserId": "MKR",
"externalApproverId": "Jack Petterson",
"externalBuyerId": "Buyer-X",
"externalVendorId": "Vendor-X",
"document": {
"fileName": "Invoice001.pdf",
"mimeType": "application/pdf",
"contentAsBase64EncodedString": "JVBERi0xLjMKJcTl8uXrp..."
}
}