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. |
|
| RelationEntityRelatedTypeId | integer |
None. |
|
| RelationEntityId | integer |
None. |
|
| ResponsibleUserId | 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,
"ProductPrice": {
"Image": {
"Name": "sample string 1",
"SecureToken": "sample string 2",
"Token": "sample string 3",
"Path": "sample string 4",
"Extension": "sample string 5",
"IsSecure": true
},
"ProductName": "sample string 1",
"VariationName": "sample string 2",
"Price": 3.0,
"VatValue": 4.0,
"VatAmount": 5.0,
"UnitName": "sample string 6",
"UnitCode": 1,
"UnitId": 1,
"InventoryAvailableQty": 7.0,
"InventoryLastTransactionId": 8.0,
"Disabled": true,
"Group": {
"Disabled": true,
"Name": "sample string 2"
},
"Selected": true,
"Text": "sample string 11",
"Value": "sample string 12"
},
"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,
"ProductPrice": {
"Image": {
"Name": "sample string 1",
"SecureToken": "sample string 2",
"Token": "sample string 3",
"Path": "sample string 4",
"Extension": "sample string 5",
"IsSecure": true
},
"ProductName": "sample string 1",
"VariationName": "sample string 2",
"Price": 3.0,
"VatValue": 4.0,
"VatAmount": 5.0,
"UnitName": "sample string 6",
"UnitCode": 1,
"UnitId": 1,
"InventoryAvailableQty": 7.0,
"InventoryLastTransactionId": 8.0,
"Disabled": true,
"Group": {
"Disabled": true,
"Name": "sample string 2"
},
"Selected": true,
"Text": "sample string 11",
"Value": "sample string 12"
},
"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
],
"RelationEntityRelatedTypeId": 1,
"RelationEntityId": 1,
"ResponsibleUserId": 1
}
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>
<ProductPrice xmlns:d4p1="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.ProductView">
<Disabled xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">true</Disabled>
<Group xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
<Disabled>true</Disabled>
<Name>sample string 2</Name>
</Group>
<Selected xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">true</Selected>
<Text xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">sample string 11</Text>
<Value xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">sample string 12</Value>
<d4p1:Image xmlns:d5p1="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.FileView">
<d5p1:Extension>sample string 5</d5p1:Extension>
<d5p1:IsSecure>true</d5p1:IsSecure>
<d5p1:Name>sample string 1</d5p1:Name>
<d5p1:Path>sample string 4</d5p1:Path>
<d5p1:SecureToken>sample string 2</d5p1:SecureToken>
<d5p1:Token>sample string 3</d5p1:Token>
</d4p1:Image>
<d4p1:InventoryAvailableQty>7</d4p1:InventoryAvailableQty>
<d4p1:InventoryLastTransactionId>8</d4p1:InventoryLastTransactionId>
<d4p1:Price>3</d4p1:Price>
<d4p1:ProductName>sample string 1</d4p1:ProductName>
<d4p1:UnitCode>1</d4p1:UnitCode>
<d4p1:UnitId>1</d4p1:UnitId>
<d4p1:UnitName>sample string 6</d4p1:UnitName>
<d4p1:VariationName>sample string 2</d4p1:VariationName>
<d4p1:VatAmount>5</d4p1:VatAmount>
<d4p1:VatValue>4</d4p1:VatValue>
</ProductPrice>
<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>
<ProductPrice xmlns:d4p1="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.ProductView">
<Disabled xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">true</Disabled>
<Group xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
<Disabled>true</Disabled>
<Name>sample string 2</Name>
</Group>
<Selected xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">true</Selected>
<Text xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">sample string 11</Text>
<Value xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">sample string 12</Value>
<d4p1:Image xmlns:d5p1="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.FileView">
<d5p1:Extension>sample string 5</d5p1:Extension>
<d5p1:IsSecure>true</d5p1:IsSecure>
<d5p1:Name>sample string 1</d5p1:Name>
<d5p1:Path>sample string 4</d5p1:Path>
<d5p1:SecureToken>sample string 2</d5p1:SecureToken>
<d5p1:Token>sample string 3</d5p1:Token>
</d4p1:Image>
<d4p1:InventoryAvailableQty>7</d4p1:InventoryAvailableQty>
<d4p1:InventoryLastTransactionId>8</d4p1:InventoryLastTransactionId>
<d4p1:Price>3</d4p1:Price>
<d4p1:ProductName>sample string 1</d4p1:ProductName>
<d4p1:UnitCode>1</d4p1:UnitCode>
<d4p1:UnitId>1</d4p1:UnitId>
<d4p1:UnitName>sample string 6</d4p1:UnitName>
<d4p1:VariationName>sample string 2</d4p1:VariationName>
<d4p1:VatAmount>5</d4p1:VatAmount>
<d4p1:VatValue>4</d4p1:VatValue>
</ProductPrice>
<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>
<RelationEntityId xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">1</RelationEntityId>
<RelationEntityRelatedTypeId xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">1</RelationEntityRelatedTypeId>
<ResponsibleUserId xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SaleInvoiceView">1</ResponsibleUserId>
<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.