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": "ce54b496-a314-41c1-a74e-63277152a920", "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": "fdd0aebe-6727-4b4d-a8d2-f33144012e4d", "theWithholdingAmount": 30.1, "noKDVReasonID": "cb1c773f-a977-4d3b-aa69-e5179c3248b4", "unit": { "name": "sample string 1", "code": "sample string 2", "id": "ccf0e0ad-ab73-45c9-8836-cb97c5891989", "companyID": "d4100dee-0c51-4d0b-94d6-7589fc3b8c87" }, "warehouseID": "4d70ee81-fe3e-4dd2-894b-aaa3da2ded81", "currencyID": "1a3b8abe-f890-43f5-bfb8-f19baf04002c", "productID": "4a9117c3-43a7-4fe8-834f-7bcba1e131eb", "productName": "sample string 31", "productType": 1, "isStockTracking": true, "description": "sample string 33", "invoiceID": "4000a8eb-fd45-442e-8667-a25ba87e0c44", "companyID": "cf26adc1-4c99-498b-9c31-e19ec3bbf967", "toBeMappedProductId": "fc5d40eb-a8b5-4220-9259-f94bf9094163" }, { "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": "fdd0aebe-6727-4b4d-a8d2-f33144012e4d", "theWithholdingAmount": 30.1, "noKDVReasonID": "cb1c773f-a977-4d3b-aa69-e5179c3248b4", "unit": { "name": "sample string 1", "code": "sample string 2", "id": "ccf0e0ad-ab73-45c9-8836-cb97c5891989", "companyID": "d4100dee-0c51-4d0b-94d6-7589fc3b8c87" }, "warehouseID": "4d70ee81-fe3e-4dd2-894b-aaa3da2ded81", "currencyID": "1a3b8abe-f890-43f5-bfb8-f19baf04002c", "productID": "4a9117c3-43a7-4fe8-834f-7bcba1e131eb", "productName": "sample string 31", "productType": 1, "isStockTracking": true, "description": "sample string 33", "invoiceID": "4000a8eb-fd45-442e-8667-a25ba87e0c44", "companyID": "cf26adc1-4c99-498b-9c31-e19ec3bbf967", "toBeMappedProductId": "fc5d40eb-a8b5-4220-9259-f94bf9094163" } ] }
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>ce54b496-a314-41c1-a74e-63277152a920</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>cf26adc1-4c99-498b-9c31-e19ec3bbf967</d2p1:CompanyID> <d2p1:Cost>7.1</d2p1:Cost> <d2p1:CurrencyID>1a3b8abe-f890-43f5-bfb8-f19baf04002c</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>4000a8eb-fd45-442e-8667-a25ba87e0c44</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>cb1c773f-a977-4d3b-aa69-e5179c3248b4</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>4a9117c3-43a7-4fe8-834f-7bcba1e131eb</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>fdd0aebe-6727-4b4d-a8d2-f33144012e4d</d2p1:TheWithholdingID> <d2p1:ThirdDiscountAmount>15.1</d2p1:ThirdDiscountAmount> <d2p1:ThirdDiscountRate>10.1</d2p1:ThirdDiscountRate> <d2p1:Title>sample string 1</d2p1:Title> <d2p1:ToBeMappedProductId>fc5d40eb-a8b5-4220-9259-f94bf9094163</d2p1:ToBeMappedProductId> <d2p1:TotalAmount>21.1</d2p1:TotalAmount> <d2p1:Unit> <d2p1:CompanyID>d4100dee-0c51-4d0b-94d6-7589fc3b8c87</d2p1:CompanyID> <d2p1:ID>ccf0e0ad-ab73-45c9-8836-cb97c5891989</d2p1:ID> <d2p1:Code>sample string 2</d2p1:Code> <d2p1:Name>sample string 1</d2p1:Name> </d2p1:Unit> <d2p1:WarehouseID>4d70ee81-fe3e-4dd2-894b-aaa3da2ded81</d2p1:WarehouseID> </d2p1:ImportInvoiceProductAddDto> <d2p1:ImportInvoiceProductAddDto> <d2p1:Amount>5.1</d2p1:Amount> <d2p1:Code>sample string 2</d2p1:Code> <d2p1:CompanyID>cf26adc1-4c99-498b-9c31-e19ec3bbf967</d2p1:CompanyID> <d2p1:Cost>7.1</d2p1:Cost> <d2p1:CurrencyID>1a3b8abe-f890-43f5-bfb8-f19baf04002c</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>4000a8eb-fd45-442e-8667-a25ba87e0c44</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>cb1c773f-a977-4d3b-aa69-e5179c3248b4</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>4a9117c3-43a7-4fe8-834f-7bcba1e131eb</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>fdd0aebe-6727-4b4d-a8d2-f33144012e4d</d2p1:TheWithholdingID> <d2p1:ThirdDiscountAmount>15.1</d2p1:ThirdDiscountAmount> <d2p1:ThirdDiscountRate>10.1</d2p1:ThirdDiscountRate> <d2p1:Title>sample string 1</d2p1:Title> <d2p1:ToBeMappedProductId>fc5d40eb-a8b5-4220-9259-f94bf9094163</d2p1:ToBeMappedProductId> <d2p1:TotalAmount>21.1</d2p1:TotalAmount> <d2p1:Unit> <d2p1:CompanyID>d4100dee-0c51-4d0b-94d6-7589fc3b8c87</d2p1:CompanyID> <d2p1:ID>ccf0e0ad-ab73-45c9-8836-cb97c5891989</d2p1:ID> <d2p1:Code>sample string 2</d2p1:Code> <d2p1:Name>sample string 1</d2p1:Name> </d2p1:Unit> <d2p1:WarehouseID>4d70ee81-fe3e-4dd2-894b-aaa3da2ded81</d2p1:WarehouseID> </d2p1:ImportInvoiceProductAddDto> </InvoiceProducts> </EInvoiceImportVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"invoiceID":"ce54b496-a314-41c1-a74e-63277152a920","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":"fdd0aebe-6727-4b4d-a8d2-f33144012e4d","theWithholdingAmount":30.1,"noKDVReasonID":"cb1c773f-a977-4d3b-aa69-e5179c3248b4","unit":{"name":"sample string 1","code":"sample string 2","id":"ccf0e0ad-ab73-45c9-8836-cb97c5891989","companyID":"d4100dee-0c51-4d0b-94d6-7589fc3b8c87"},"warehouseID":"4d70ee81-fe3e-4dd2-894b-aaa3da2ded81","currencyID":"1a3b8abe-f890-43f5-bfb8-f19baf04002c","productID":"4a9117c3-43a7-4fe8-834f-7bcba1e131eb","productName":"sample string 31","productType":1,"isStockTracking":true,"description":"sample string 33","invoiceID":"4000a8eb-fd45-442e-8667-a25ba87e0c44","companyID":"cf26adc1-4c99-498b-9c31-e19ec3bbf967","toBeMappedProductId":"fc5d40eb-a8b5-4220-9259-f94bf9094163"},{"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":"fdd0aebe-6727-4b4d-a8d2-f33144012e4d","theWithholdingAmount":30.1,"noKDVReasonID":"cb1c773f-a977-4d3b-aa69-e5179c3248b4","unit":{"name":"sample string 1","code":"sample string 2","id":"ccf0e0ad-ab73-45c9-8836-cb97c5891989","companyID":"d4100dee-0c51-4d0b-94d6-7589fc3b8c87"},"warehouseID":"4d70ee81-fe3e-4dd2-894b-aaa3da2ded81","currencyID":"1a3b8abe-f890-43f5-bfb8-f19baf04002c","productID":"4a9117c3-43a7-4fe8-834f-7bcba1e131eb","productName":"sample string 31","productType":1,"isStockTracking":true,"description":"sample string 33","invoiceID":"4000a8eb-fd45-442e-8667-a25ba87e0c44","companyID":"cf26adc1-4c99-498b-9c31-e19ec3bbf967","toBeMappedProductId":"fc5d40eb-a8b5-4220-9259-f94bf9094163"}]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.