POST v1/InvoiceDocuments/{invoiceId}/Create

Upload the PDF document for an invoice managed by an external service. The invoice is marked as read-only once the document is attached.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
invoiceId

The id of the invoice.

integer

Required.

Body Parameters

The PDF document data.

AddInvoiceDocumentDto
NameDescriptionTypeAdditional information
Filename

Name of the PDF file, including the .pdf extension.

string

Required

FileDataBase64

Base64-encoded PDF document content.

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Filename": "sample string 1",
  "FileDataBase64": "sample string 2"
}

application/xml, text/xml

Sample:
<AddInvoiceDocumentDto xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Filename>sample string 1</Filename>
  <FileDataBase64>sample string 2</FileDataBase64>
</AddInvoiceDocumentDto>

Response Information

Resource Description

File id of the uploaded document.

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.