POST api/Invoice/ImportEInvoice
Request Information
URI Parameters
None.
Body Parameters
EInvoiceImportVMName | Description | Type | Additional information |
---|---|---|---|
InvoiceID | globally unique identifier |
None. |
|
InvoiceProducts | Collection of ImportInvoiceProductAddDto |
None. |
Request Formats
application/json, text/json
Sample:
{ "invoiceID": "ffcbad69-a7d6-4b30-84e5-2bcf18125cb4", "invoiceProducts": [ { "title": "sample string 1", "code": "sample string 2", "currencyRate": 3.1, "quantity": 4.1, "amount": 5.1, "leanAmount": 6.1, "cost": 7.1, "discountRate": 8.1, "secondDiscountRate": 9.1, "thirdDiscountRate": 10.1, "fourthDiscountRate": 11.1, "fifthDiscountRate": 12.1, "discountAmount": 13.1, "secondDiscountAmount": 14.1, "thirdDiscountAmount": 15.1, "fourthDiscountAmount": 16.1, "fifthDiscountAmount": 17.1, "discountedUnitPrice": 18.1, "discountedTotalPrice": 19.1, "isDiscountPercentage": true, "totalAmount": 21.1, "kdv": 0, "kdvAmount": 22.1, "oiv": 23.1, "oivAmount": 24.1, "oivCode": "sample string 25", "otv": 26.1, "otvAmount": 27.1, "otvCode": "sample string 28", "isOTVPercentage": true, "theWithholdingID": "f6e0ba6f-3eee-477a-aff4-c039b28beed8", "theWithholdingAmount": 30.1, "noKDVReasonID": "44e09c00-255b-4190-9711-a789e88b8191", "unit": { "name": "sample string 1", "code": "sample string 2", "id": "7a2a4eec-05aa-4c20-aebb-3194fc0e6b04", "companyID": "67ae229d-ad7f-460b-add7-0271840d563a" }, "warehouseID": "6a97b2b9-5562-4d67-a741-9fa8a83b510b", "currencyID": "17fa0741-3a9e-4b5d-8e21-7bcb7540717b", "productID": "521c0af1-e97e-45b2-a2e9-defae30ad9a2", "productName": "sample string 31", "productType": 1, "isStockTracking": true, "description": "sample string 33", "invoiceID": "7ca29f1b-4672-4be1-98da-c30d90f57230", "companyID": "8de627a3-ba71-453c-95a5-ad68ee36035f", "toBeMappedProductId": "aaafb169-8dc4-44d5-b9e1-cbf73c59ca01" }, { "title": "sample string 1", "code": "sample string 2", "currencyRate": 3.1, "quantity": 4.1, "amount": 5.1, "leanAmount": 6.1, "cost": 7.1, "discountRate": 8.1, "secondDiscountRate": 9.1, "thirdDiscountRate": 10.1, "fourthDiscountRate": 11.1, "fifthDiscountRate": 12.1, "discountAmount": 13.1, "secondDiscountAmount": 14.1, "thirdDiscountAmount": 15.1, "fourthDiscountAmount": 16.1, "fifthDiscountAmount": 17.1, "discountedUnitPrice": 18.1, "discountedTotalPrice": 19.1, "isDiscountPercentage": true, "totalAmount": 21.1, "kdv": 0, "kdvAmount": 22.1, "oiv": 23.1, "oivAmount": 24.1, "oivCode": "sample string 25", "otv": 26.1, "otvAmount": 27.1, "otvCode": "sample string 28", "isOTVPercentage": true, "theWithholdingID": "f6e0ba6f-3eee-477a-aff4-c039b28beed8", "theWithholdingAmount": 30.1, "noKDVReasonID": "44e09c00-255b-4190-9711-a789e88b8191", "unit": { "name": "sample string 1", "code": "sample string 2", "id": "7a2a4eec-05aa-4c20-aebb-3194fc0e6b04", "companyID": "67ae229d-ad7f-460b-add7-0271840d563a" }, "warehouseID": "6a97b2b9-5562-4d67-a741-9fa8a83b510b", "currencyID": "17fa0741-3a9e-4b5d-8e21-7bcb7540717b", "productID": "521c0af1-e97e-45b2-a2e9-defae30ad9a2", "productName": "sample string 31", "productType": 1, "isStockTracking": true, "description": "sample string 33", "invoiceID": "7ca29f1b-4672-4be1-98da-c30d90f57230", "companyID": "8de627a3-ba71-453c-95a5-ad68ee36035f", "toBeMappedProductId": "aaafb169-8dc4-44d5-b9e1-cbf73c59ca01" } ] }
application/xml, text/xml
Sample:
<EInvoiceImportVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Models"> <InvoiceID>ffcbad69-a7d6-4b30-84e5-2bcf18125cb4</InvoiceID> <InvoiceProducts xmlns:d2p1="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs"> <d2p1:ImportInvoiceProductAddDto> <d2p1:Amount>5.1</d2p1:Amount> <d2p1:Code>sample string 2</d2p1:Code> <d2p1:CompanyID>8de627a3-ba71-453c-95a5-ad68ee36035f</d2p1:CompanyID> <d2p1:Cost>7.1</d2p1:Cost> <d2p1:CurrencyID>17fa0741-3a9e-4b5d-8e21-7bcb7540717b</d2p1:CurrencyID> <d2p1:CurrencyRate>3.1</d2p1:CurrencyRate> <d2p1:Description>sample string 33</d2p1:Description> <d2p1:DiscountAmount>13.1</d2p1:DiscountAmount> <d2p1:DiscountRate>8.1</d2p1:DiscountRate> <d2p1:DiscountedTotalPrice>19.1</d2p1:DiscountedTotalPrice> <d2p1:DiscountedUnitPrice>18.1</d2p1:DiscountedUnitPrice> <d2p1:FifthDiscountAmount>17.1</d2p1:FifthDiscountAmount> <d2p1:FifthDiscountRate>12.1</d2p1:FifthDiscountRate> <d2p1:FourthDiscountAmount>16.1</d2p1:FourthDiscountAmount> <d2p1:FourthDiscountRate>11.1</d2p1:FourthDiscountRate> <d2p1:InvoiceID>7ca29f1b-4672-4be1-98da-c30d90f57230</d2p1:InvoiceID> <d2p1:IsDiscountPercentage>true</d2p1:IsDiscountPercentage> <d2p1:IsOTVPercentage>true</d2p1:IsOTVPercentage> <d2p1:IsStockTracking>true</d2p1:IsStockTracking> <d2p1:KDV>KDV0</d2p1:KDV> <d2p1:KDVAmount>22.1</d2p1:KDVAmount> <d2p1:LeanAmount>6.1</d2p1:LeanAmount> <d2p1:NoKDVReasonID>44e09c00-255b-4190-9711-a789e88b8191</d2p1:NoKDVReasonID> <d2p1:OIV>23.1</d2p1:OIV> <d2p1:OIVAmount>24.1</d2p1:OIVAmount> <d2p1:OIVCode>sample string 25</d2p1:OIVCode> <d2p1:OTV>26.1</d2p1:OTV> <d2p1:OTVAmount>27.1</d2p1:OTVAmount> <d2p1:OTVCode>sample string 28</d2p1:OTVCode> <d2p1:ProductID>521c0af1-e97e-45b2-a2e9-defae30ad9a2</d2p1:ProductID> <d2p1:ProductName>sample string 31</d2p1:ProductName> <d2p1:ProductType>Product</d2p1:ProductType> <d2p1:Quantity>4.1</d2p1:Quantity> <d2p1:SecondDiscountAmount>14.1</d2p1:SecondDiscountAmount> <d2p1:SecondDiscountRate>9.1</d2p1:SecondDiscountRate> <d2p1:TheWithholdingAmount>30.1</d2p1:TheWithholdingAmount> <d2p1:TheWithholdingID>f6e0ba6f-3eee-477a-aff4-c039b28beed8</d2p1:TheWithholdingID> <d2p1:ThirdDiscountAmount>15.1</d2p1:ThirdDiscountAmount> <d2p1:ThirdDiscountRate>10.1</d2p1:ThirdDiscountRate> <d2p1:Title>sample string 1</d2p1:Title> <d2p1:ToBeMappedProductId>aaafb169-8dc4-44d5-b9e1-cbf73c59ca01</d2p1:ToBeMappedProductId> <d2p1:TotalAmount>21.1</d2p1:TotalAmount> <d2p1:Unit> <d2p1:CompanyID>67ae229d-ad7f-460b-add7-0271840d563a</d2p1:CompanyID> <d2p1:ID>7a2a4eec-05aa-4c20-aebb-3194fc0e6b04</d2p1:ID> <d2p1:Code>sample string 2</d2p1:Code> <d2p1:Name>sample string 1</d2p1:Name> </d2p1:Unit> <d2p1:WarehouseID>6a97b2b9-5562-4d67-a741-9fa8a83b510b</d2p1:WarehouseID> </d2p1:ImportInvoiceProductAddDto> <d2p1:ImportInvoiceProductAddDto> <d2p1:Amount>5.1</d2p1:Amount> <d2p1:Code>sample string 2</d2p1:Code> <d2p1:CompanyID>8de627a3-ba71-453c-95a5-ad68ee36035f</d2p1:CompanyID> <d2p1:Cost>7.1</d2p1:Cost> <d2p1:CurrencyID>17fa0741-3a9e-4b5d-8e21-7bcb7540717b</d2p1:CurrencyID> <d2p1:CurrencyRate>3.1</d2p1:CurrencyRate> <d2p1:Description>sample string 33</d2p1:Description> <d2p1:DiscountAmount>13.1</d2p1:DiscountAmount> <d2p1:DiscountRate>8.1</d2p1:DiscountRate> <d2p1:DiscountedTotalPrice>19.1</d2p1:DiscountedTotalPrice> <d2p1:DiscountedUnitPrice>18.1</d2p1:DiscountedUnitPrice> <d2p1:FifthDiscountAmount>17.1</d2p1:FifthDiscountAmount> <d2p1:FifthDiscountRate>12.1</d2p1:FifthDiscountRate> <d2p1:FourthDiscountAmount>16.1</d2p1:FourthDiscountAmount> <d2p1:FourthDiscountRate>11.1</d2p1:FourthDiscountRate> <d2p1:InvoiceID>7ca29f1b-4672-4be1-98da-c30d90f57230</d2p1:InvoiceID> <d2p1:IsDiscountPercentage>true</d2p1:IsDiscountPercentage> <d2p1:IsOTVPercentage>true</d2p1:IsOTVPercentage> <d2p1:IsStockTracking>true</d2p1:IsStockTracking> <d2p1:KDV>KDV0</d2p1:KDV> <d2p1:KDVAmount>22.1</d2p1:KDVAmount> <d2p1:LeanAmount>6.1</d2p1:LeanAmount> <d2p1:NoKDVReasonID>44e09c00-255b-4190-9711-a789e88b8191</d2p1:NoKDVReasonID> <d2p1:OIV>23.1</d2p1:OIV> <d2p1:OIVAmount>24.1</d2p1:OIVAmount> <d2p1:OIVCode>sample string 25</d2p1:OIVCode> <d2p1:OTV>26.1</d2p1:OTV> <d2p1:OTVAmount>27.1</d2p1:OTVAmount> <d2p1:OTVCode>sample string 28</d2p1:OTVCode> <d2p1:ProductID>521c0af1-e97e-45b2-a2e9-defae30ad9a2</d2p1:ProductID> <d2p1:ProductName>sample string 31</d2p1:ProductName> <d2p1:ProductType>Product</d2p1:ProductType> <d2p1:Quantity>4.1</d2p1:Quantity> <d2p1:SecondDiscountAmount>14.1</d2p1:SecondDiscountAmount> <d2p1:SecondDiscountRate>9.1</d2p1:SecondDiscountRate> <d2p1:TheWithholdingAmount>30.1</d2p1:TheWithholdingAmount> <d2p1:TheWithholdingID>f6e0ba6f-3eee-477a-aff4-c039b28beed8</d2p1:TheWithholdingID> <d2p1:ThirdDiscountAmount>15.1</d2p1:ThirdDiscountAmount> <d2p1:ThirdDiscountRate>10.1</d2p1:ThirdDiscountRate> <d2p1:Title>sample string 1</d2p1:Title> <d2p1:ToBeMappedProductId>aaafb169-8dc4-44d5-b9e1-cbf73c59ca01</d2p1:ToBeMappedProductId> <d2p1:TotalAmount>21.1</d2p1:TotalAmount> <d2p1:Unit> <d2p1:CompanyID>67ae229d-ad7f-460b-add7-0271840d563a</d2p1:CompanyID> <d2p1:ID>7a2a4eec-05aa-4c20-aebb-3194fc0e6b04</d2p1:ID> <d2p1:Code>sample string 2</d2p1:Code> <d2p1:Name>sample string 1</d2p1:Name> </d2p1:Unit> <d2p1:WarehouseID>6a97b2b9-5562-4d67-a741-9fa8a83b510b</d2p1:WarehouseID> </d2p1:ImportInvoiceProductAddDto> </InvoiceProducts> </EInvoiceImportVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"invoiceID":"ffcbad69-a7d6-4b30-84e5-2bcf18125cb4","invoiceProducts":[{"title":"sample string 1","code":"sample string 2","currencyRate":3.1,"quantity":4.1,"amount":5.1,"leanAmount":6.1,"cost":7.1,"discountRate":8.1,"secondDiscountRate":9.1,"thirdDiscountRate":10.1,"fourthDiscountRate":11.1,"fifthDiscountRate":12.1,"discountAmount":13.1,"secondDiscountAmount":14.1,"thirdDiscountAmount":15.1,"fourthDiscountAmount":16.1,"fifthDiscountAmount":17.1,"discountedUnitPrice":18.1,"discountedTotalPrice":19.1,"isDiscountPercentage":true,"totalAmount":21.1,"kdv":0,"kdvAmount":22.1,"oiv":23.1,"oivAmount":24.1,"oivCode":"sample string 25","otv":26.1,"otvAmount":27.1,"otvCode":"sample string 28","isOTVPercentage":true,"theWithholdingID":"f6e0ba6f-3eee-477a-aff4-c039b28beed8","theWithholdingAmount":30.1,"noKDVReasonID":"44e09c00-255b-4190-9711-a789e88b8191","unit":{"name":"sample string 1","code":"sample string 2","id":"7a2a4eec-05aa-4c20-aebb-3194fc0e6b04","companyID":"67ae229d-ad7f-460b-add7-0271840d563a"},"warehouseID":"6a97b2b9-5562-4d67-a741-9fa8a83b510b","currencyID":"17fa0741-3a9e-4b5d-8e21-7bcb7540717b","productID":"521c0af1-e97e-45b2-a2e9-defae30ad9a2","productName":"sample string 31","productType":1,"isStockTracking":true,"description":"sample string 33","invoiceID":"7ca29f1b-4672-4be1-98da-c30d90f57230","companyID":"8de627a3-ba71-453c-95a5-ad68ee36035f","toBeMappedProductId":"aaafb169-8dc4-44d5-b9e1-cbf73c59ca01"},{"title":"sample string 1","code":"sample string 2","currencyRate":3.1,"quantity":4.1,"amount":5.1,"leanAmount":6.1,"cost":7.1,"discountRate":8.1,"secondDiscountRate":9.1,"thirdDiscountRate":10.1,"fourthDiscountRate":11.1,"fifthDiscountRate":12.1,"discountAmount":13.1,"secondDiscountAmount":14.1,"thirdDiscountAmount":15.1,"fourthDiscountAmount":16.1,"fifthDiscountAmount":17.1,"discountedUnitPrice":18.1,"discountedTotalPrice":19.1,"isDiscountPercentage":true,"totalAmount":21.1,"kdv":0,"kdvAmount":22.1,"oiv":23.1,"oivAmount":24.1,"oivCode":"sample string 25","otv":26.1,"otvAmount":27.1,"otvCode":"sample string 28","isOTVPercentage":true,"theWithholdingID":"f6e0ba6f-3eee-477a-aff4-c039b28beed8","theWithholdingAmount":30.1,"noKDVReasonID":"44e09c00-255b-4190-9711-a789e88b8191","unit":{"name":"sample string 1","code":"sample string 2","id":"7a2a4eec-05aa-4c20-aebb-3194fc0e6b04","companyID":"67ae229d-ad7f-460b-add7-0271840d563a"},"warehouseID":"6a97b2b9-5562-4d67-a741-9fa8a83b510b","currencyID":"17fa0741-3a9e-4b5d-8e21-7bcb7540717b","productID":"521c0af1-e97e-45b2-a2e9-defae30ad9a2","productName":"sample string 31","productType":1,"isStockTracking":true,"description":"sample string 33","invoiceID":"7ca29f1b-4672-4be1-98da-c30d90f57230","companyID":"8de627a3-ba71-453c-95a5-ad68ee36035f","toBeMappedProductId":"aaafb169-8dc4-44d5-b9e1-cbf73c59ca01"}]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.