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": "a849b1e9-dbc7-4884-adbf-fcbb9ddb48b9", "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": "329c7919-4dc6-4a7c-996b-ac09272ad108", "theWithholdingAmount": 30.1, "noKDVReasonID": "abbbfb25-ca0c-4d53-bfcf-52264f95a3a6", "unit": { "name": "sample string 1", "code": "sample string 2", "id": "919ecd17-b067-4563-881d-dbac7fa82dac", "companyID": "ade4d48f-e161-4a41-81a9-20627a602b76" }, "warehouseID": "0f2900e7-10d2-4c12-bef6-8450c7ada6b9", "currencyID": "d699cfae-74a2-4da6-9781-b2107d47da40", "productID": "f14b3fee-f88c-4395-b0dc-96683f709d65", "productName": "sample string 31", "productType": 1, "isStockTracking": true, "description": "sample string 33", "invoiceID": "97e417c8-d7ea-4ce1-bc03-21ecce97fa13", "companyID": "ba72a5cc-9373-4c44-be55-565cc197acb6", "toBeMappedProductId": "17957a44-142a-4b74-aae6-569525f14308" }, { "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": "329c7919-4dc6-4a7c-996b-ac09272ad108", "theWithholdingAmount": 30.1, "noKDVReasonID": "abbbfb25-ca0c-4d53-bfcf-52264f95a3a6", "unit": { "name": "sample string 1", "code": "sample string 2", "id": "919ecd17-b067-4563-881d-dbac7fa82dac", "companyID": "ade4d48f-e161-4a41-81a9-20627a602b76" }, "warehouseID": "0f2900e7-10d2-4c12-bef6-8450c7ada6b9", "currencyID": "d699cfae-74a2-4da6-9781-b2107d47da40", "productID": "f14b3fee-f88c-4395-b0dc-96683f709d65", "productName": "sample string 31", "productType": 1, "isStockTracking": true, "description": "sample string 33", "invoiceID": "97e417c8-d7ea-4ce1-bc03-21ecce97fa13", "companyID": "ba72a5cc-9373-4c44-be55-565cc197acb6", "toBeMappedProductId": "17957a44-142a-4b74-aae6-569525f14308" } ] }
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>a849b1e9-dbc7-4884-adbf-fcbb9ddb48b9</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>ba72a5cc-9373-4c44-be55-565cc197acb6</d2p1:CompanyID> <d2p1:Cost>7.1</d2p1:Cost> <d2p1:CurrencyID>d699cfae-74a2-4da6-9781-b2107d47da40</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>97e417c8-d7ea-4ce1-bc03-21ecce97fa13</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>abbbfb25-ca0c-4d53-bfcf-52264f95a3a6</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>f14b3fee-f88c-4395-b0dc-96683f709d65</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>329c7919-4dc6-4a7c-996b-ac09272ad108</d2p1:TheWithholdingID> <d2p1:ThirdDiscountAmount>15.1</d2p1:ThirdDiscountAmount> <d2p1:ThirdDiscountRate>10.1</d2p1:ThirdDiscountRate> <d2p1:Title>sample string 1</d2p1:Title> <d2p1:ToBeMappedProductId>17957a44-142a-4b74-aae6-569525f14308</d2p1:ToBeMappedProductId> <d2p1:TotalAmount>21.1</d2p1:TotalAmount> <d2p1:Unit> <d2p1:CompanyID>ade4d48f-e161-4a41-81a9-20627a602b76</d2p1:CompanyID> <d2p1:ID>919ecd17-b067-4563-881d-dbac7fa82dac</d2p1:ID> <d2p1:Code>sample string 2</d2p1:Code> <d2p1:Name>sample string 1</d2p1:Name> </d2p1:Unit> <d2p1:WarehouseID>0f2900e7-10d2-4c12-bef6-8450c7ada6b9</d2p1:WarehouseID> </d2p1:ImportInvoiceProductAddDto> <d2p1:ImportInvoiceProductAddDto> <d2p1:Amount>5.1</d2p1:Amount> <d2p1:Code>sample string 2</d2p1:Code> <d2p1:CompanyID>ba72a5cc-9373-4c44-be55-565cc197acb6</d2p1:CompanyID> <d2p1:Cost>7.1</d2p1:Cost> <d2p1:CurrencyID>d699cfae-74a2-4da6-9781-b2107d47da40</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>97e417c8-d7ea-4ce1-bc03-21ecce97fa13</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>abbbfb25-ca0c-4d53-bfcf-52264f95a3a6</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>f14b3fee-f88c-4395-b0dc-96683f709d65</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>329c7919-4dc6-4a7c-996b-ac09272ad108</d2p1:TheWithholdingID> <d2p1:ThirdDiscountAmount>15.1</d2p1:ThirdDiscountAmount> <d2p1:ThirdDiscountRate>10.1</d2p1:ThirdDiscountRate> <d2p1:Title>sample string 1</d2p1:Title> <d2p1:ToBeMappedProductId>17957a44-142a-4b74-aae6-569525f14308</d2p1:ToBeMappedProductId> <d2p1:TotalAmount>21.1</d2p1:TotalAmount> <d2p1:Unit> <d2p1:CompanyID>ade4d48f-e161-4a41-81a9-20627a602b76</d2p1:CompanyID> <d2p1:ID>919ecd17-b067-4563-881d-dbac7fa82dac</d2p1:ID> <d2p1:Code>sample string 2</d2p1:Code> <d2p1:Name>sample string 1</d2p1:Name> </d2p1:Unit> <d2p1:WarehouseID>0f2900e7-10d2-4c12-bef6-8450c7ada6b9</d2p1:WarehouseID> </d2p1:ImportInvoiceProductAddDto> </InvoiceProducts> </EInvoiceImportVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"invoiceID":"a849b1e9-dbc7-4884-adbf-fcbb9ddb48b9","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":"329c7919-4dc6-4a7c-996b-ac09272ad108","theWithholdingAmount":30.1,"noKDVReasonID":"abbbfb25-ca0c-4d53-bfcf-52264f95a3a6","unit":{"name":"sample string 1","code":"sample string 2","id":"919ecd17-b067-4563-881d-dbac7fa82dac","companyID":"ade4d48f-e161-4a41-81a9-20627a602b76"},"warehouseID":"0f2900e7-10d2-4c12-bef6-8450c7ada6b9","currencyID":"d699cfae-74a2-4da6-9781-b2107d47da40","productID":"f14b3fee-f88c-4395-b0dc-96683f709d65","productName":"sample string 31","productType":1,"isStockTracking":true,"description":"sample string 33","invoiceID":"97e417c8-d7ea-4ce1-bc03-21ecce97fa13","companyID":"ba72a5cc-9373-4c44-be55-565cc197acb6","toBeMappedProductId":"17957a44-142a-4b74-aae6-569525f14308"},{"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":"329c7919-4dc6-4a7c-996b-ac09272ad108","theWithholdingAmount":30.1,"noKDVReasonID":"abbbfb25-ca0c-4d53-bfcf-52264f95a3a6","unit":{"name":"sample string 1","code":"sample string 2","id":"919ecd17-b067-4563-881d-dbac7fa82dac","companyID":"ade4d48f-e161-4a41-81a9-20627a602b76"},"warehouseID":"0f2900e7-10d2-4c12-bef6-8450c7ada6b9","currencyID":"d699cfae-74a2-4da6-9781-b2107d47da40","productID":"f14b3fee-f88c-4395-b0dc-96683f709d65","productName":"sample string 31","productType":1,"isStockTracking":true,"description":"sample string 33","invoiceID":"97e417c8-d7ea-4ce1-bc03-21ecce97fa13","companyID":"ba72a5cc-9373-4c44-be55-565cc197acb6","toBeMappedProductId":"17957a44-142a-4b74-aae6-569525f14308"}]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.