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
| Name | Description | Type | Additional information |
|---|---|---|---|
| invoiceId |
The id of the invoice. |
integer |
Required. |
Body Parameters
The PDF document data.
AddInvoiceDocumentDto| Name | Description | Type | Additional 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| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |