POST api/crm/sale/deal/sale/invoice/create
Request Information
URI Parameters
None.
Body Parameters
CrmSaleDealSaleInvoiceCreateView| Name | Description | Type | Additional information |
|---|---|---|---|
| CrmSaleDealId | integer |
None. |
|
| Id | integer |
None. |
|
| IsCreate | boolean |
None. |
|
| PeopleId | integer |
None. |
|
| IssueDate | string |
Required |
|
| PaymentDeadLineDays | integer |
None. |
|
| Number | integer |
None. |
|
| Type | InvoiceType |
None. |
|
| ProformaInvoiceId | integer |
None. |
|
| Description | string |
None. |
|
| Items | Collection of SaleInvoiceItemCreateEditView |
None. |
|
| TotalQuantity | decimal number |
None. |
|
| TotalAmount | decimal number |
Range: inclusive between 0 and 10000000000000 |
|
| TotalDiscountAmount | decimal number |
Range: inclusive between 0 and 10000000000000 |
|
| TotalOvervalDiscountAmount | decimal number |
Range: inclusive between 0 and 10000000000000 |
|
| TotalVatAmount | decimal number |
Range: inclusive between 0 and 10000000000000 |
|
| TotalPayableAmount | decimal number |
Range: inclusive between 0 and 10000000000000 |
|
| TotalPaidAmount | decimal number |
None. |
|
| TotalRemainingAmount | decimal number |
None. |
|
| OrderIds | Collection of integer |
None. |
|
| StatusId | integer |
None. |
|
| AdditionalDiscounts | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"CrmSaleDealId": 1,
"Id": 2,
"IsCreate": true,
"PeopleId": 4,
"IssueDate": "sample string 5",
"PaymentDeadLineDays": 6,
"Number": 1,
"Type": 0,
"ProformaInvoiceId": 1,
"Description": "sample string 7",
"Items": [
{
"Id": 1,
"IsCreate": true,
"RelatedTypeCode": "sample string 3",
"RelatedTypeId": 4,
"ProductPriceId": 1,
"UnitCode": 1,
"UnitName": "sample string 5",
"UnitId": 1,
"Quantity": "sample string 6",
"VatValue": 7.0,
"VatAmount": 1.0,
"UnitAmount": 8.0,
"Amount": 1.0,
"PayableAmount": 9.0,
"DiscountType": 1,
"DiscountAmount": 10.0,
"OvervalDiscountAmount": 11.0,
"DiscountValue": 12.0,
"Order": 13,
"Description": "sample string 14"
},
{
"Id": 1,
"IsCreate": true,
"RelatedTypeCode": "sample string 3",
"RelatedTypeId": 4,
"ProductPriceId": 1,
"UnitCode": 1,
"UnitName": "sample string 5",
"UnitId": 1,
"Quantity": "sample string 6",
"VatValue": 7.0,
"VatAmount": 1.0,
"UnitAmount": 8.0,
"Amount": 1.0,
"PayableAmount": 9.0,
"DiscountType": 1,
"DiscountAmount": 10.0,
"OvervalDiscountAmount": 11.0,
"DiscountValue": 12.0,
"Order": 13,
"Description": "sample string 14"
}
],
"TotalQuantity": 1.0,
"TotalAmount": 8.0,
"TotalDiscountAmount": 9.0,
"TotalOvervalDiscountAmount": 10.0,
"TotalVatAmount": 11.0,
"TotalPayableAmount": 12.0,
"TotalPaidAmount": 1.0,
"TotalRemainingAmount": 1.0,
"OrderIds": [
1,
2
],
"StatusId": 13,
"AdditionalDiscounts": [
1,
2
]
}
application/xml, text/xml
Sample:
<CrmSaleDealSaleInvoiceCreateView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.CrmSaleView">
<AdditionalDiscounts xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</AdditionalDiscounts>
<Description xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">sample string 7</Description>
<Id xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">2</Id>
<IsCreate xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">true</IsCreate>
<IssueDate xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">sample string 5</IssueDate>
<Items xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">
<SaleInvoiceItemCreateEditView>
<Amount>1</Amount>
<Description>sample string 14</Description>
<DiscountAmount>10</DiscountAmount>
<DiscountType>Percent</DiscountType>
<DiscountValue>12</DiscountValue>
<Id>1</Id>
<IsCreate>true</IsCreate>
<Order>13</Order>
<OvervalDiscountAmount>11</OvervalDiscountAmount>
<PayableAmount>9</PayableAmount>
<ProductPriceId>1</ProductPriceId>
<Quantity>sample string 6</Quantity>
<RelatedTypeCode>sample string 3</RelatedTypeCode>
<RelatedTypeId>4</RelatedTypeId>
<UnitAmount>8</UnitAmount>
<UnitCode>1</UnitCode>
<UnitId>1</UnitId>
<UnitName>sample string 5</UnitName>
<VatAmount>1</VatAmount>
<VatValue>7</VatValue>
</SaleInvoiceItemCreateEditView>
<SaleInvoiceItemCreateEditView>
<Amount>1</Amount>
<Description>sample string 14</Description>
<DiscountAmount>10</DiscountAmount>
<DiscountType>Percent</DiscountType>
<DiscountValue>12</DiscountValue>
<Id>1</Id>
<IsCreate>true</IsCreate>
<Order>13</Order>
<OvervalDiscountAmount>11</OvervalDiscountAmount>
<PayableAmount>9</PayableAmount>
<ProductPriceId>1</ProductPriceId>
<Quantity>sample string 6</Quantity>
<RelatedTypeCode>sample string 3</RelatedTypeCode>
<RelatedTypeId>4</RelatedTypeId>
<UnitAmount>8</UnitAmount>
<UnitCode>1</UnitCode>
<UnitId>1</UnitId>
<UnitName>sample string 5</UnitName>
<VatAmount>1</VatAmount>
<VatValue>7</VatValue>
</SaleInvoiceItemCreateEditView>
</Items>
<Number xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">1</Number>
<OrderIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</OrderIds>
<PaymentDeadLineDays xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">6</PaymentDeadLineDays>
<PeopleId xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">4</PeopleId>
<ProformaInvoiceId xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">1</ProformaInvoiceId>
<StatusId xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">13</StatusId>
<TotalAmount xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">8</TotalAmount>
<TotalDiscountAmount xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">9</TotalDiscountAmount>
<TotalOvervalDiscountAmount xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">10</TotalOvervalDiscountAmount>
<TotalPaidAmount xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">1</TotalPaidAmount>
<TotalPayableAmount xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">12</TotalPayableAmount>
<TotalQuantity xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">1</TotalQuantity>
<TotalRemainingAmount xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">1</TotalRemainingAmount>
<TotalVatAmount xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">11</TotalVatAmount>
<Type xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">Invoice</Type>
<CrmSaleDealId>1</CrmSaleDealId>
</CrmSaleDealSaleInvoiceCreateView>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.