POST api/Order/AddAttachment/{orderNo}
Endpoint for attach a file to a given order
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| orderNo | integer |
Required |
Body Parameters
PostAttachmentDto| Name | Description | Type | Additional information |
|---|---|---|---|
| FileName | string |
Required |
|
| SendWithInvoicesAndCreditNotes | boolean |
Required |
|
| Description | string |
Required |
|
| File | string |
Required |
|
| OrderNo | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"FileName": "sample string 1",
"SendWithInvoicesAndCreditNotes": true,
"Description": "sample string 3",
"File": "sample string 4",
"OrderNo": 5
}
application/xml, text/xml
Sample:
<PostAttachmentDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Post"> <Description>sample string 3</Description> <File>sample string 4</File> <FileName>sample string 1</FileName> <OrderNo>5</OrderNo> <SendWithInvoicesAndCreditNotes>true</SendWithInvoicesAndCreditNotes> </PostAttachmentDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
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. |