POST api/SDInvoice/SendInvoiceByEmail/{accountId}/{companyId}/{invoiceNum}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| accountId | integer |
Required |
|
| companyId | string |
Required |
|
| invoiceNum | string |
Required |
Body Parameters
EmailModel| Name | Description | Type | Additional information |
|---|---|---|---|
| AccountId | integer |
None. |
|
| CompanyId | string |
None. |
|
| Subject | string |
None. |
|
| Body | string |
None. |
|
| To | string |
None. |
|
| BCC | string |
None. |
|
| CC | string |
None. |
|
| ReplyTo | string |
None. |
|
| BackgroundJobInfo | string |
None. |
|
| AttachmentUrl | Collection of string |
None. |
|
| EntityType | integer |
None. |
|
| EntityId | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"AccountId": 1,
"CompanyId": "sample string 2",
"Subject": "sample string 3",
"Body": "sample string 4",
"To": "sample string 5",
"BCC": "sample string 6",
"CC": "sample string 7",
"ReplyTo": "sample string 8",
"BackgroundJobInfo": "sample string 9",
"AttachmentUrl": [
"sample string 1",
"sample string 2"
],
"EntityType": 10,
"EntityId": "sample string 11"
}
application/xml, text/xml
Sample:
<EmailModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SAWinProV4.Model.Models">
<AccountId>1</AccountId>
<AttachmentUrl xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</AttachmentUrl>
<BCC>sample string 6</BCC>
<BackgroundJobInfo>sample string 9</BackgroundJobInfo>
<Body>sample string 4</Body>
<CC>sample string 7</CC>
<CompanyId>sample string 2</CompanyId>
<EntityId>sample string 11</EntityId>
<EntityType>10</EntityType>
<ReplyTo>sample string 8</ReplyTo>
<Subject>sample string 3</Subject>
<To>sample string 5</To>
</EmailModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ObjectNone.
Response Formats
application/json, text/json
Sample:
{}
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />