POST api/duty/import/heap
Request Information
URI Parameters
None.
Body Parameters
Collection of UploadToHeapRequestDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerID | integer |
None. |
|
| DebtorID | integer |
None. |
|
| ChannelCode | string |
None. |
|
| ChannelTypeID | integer |
None. |
|
| RefNum | string |
None. |
|
| Waybill | string |
None. |
|
| WaybillDate | date |
None. |
|
| Invoice | string |
None. |
|
| InvoiceDate | date |
None. |
|
| DutyDate | date |
None. |
|
| PaymentDate | date |
None. |
|
| Summ | decimal number |
None. |
|
| LVDutyID | integer |
None. |
|
| Contract | string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"CustomerID": 1,
"DebtorID": 2,
"ChannelCode": "sample string 3",
"ChannelTypeID": 4,
"RefNum": "sample string 5",
"Waybill": "sample string 6",
"WaybillDate": "2026-02-04T03:56:54",
"Invoice": "sample string 8",
"InvoiceDate": "2026-02-04T03:56:54",
"DutyDate": "2026-02-04T03:56:54",
"PaymentDate": "2026-02-04T03:56:54+03:00",
"Summ": 11.0,
"LVDutyID": 12,
"Contract": "sample string 13"
},
{
"CustomerID": 1,
"DebtorID": 2,
"ChannelCode": "sample string 3",
"ChannelTypeID": 4,
"RefNum": "sample string 5",
"Waybill": "sample string 6",
"WaybillDate": "2026-02-04T03:56:54",
"Invoice": "sample string 8",
"InvoiceDate": "2026-02-04T03:56:54",
"DutyDate": "2026-02-04T03:56:54",
"PaymentDate": "2026-02-04T03:56:54+03:00",
"Summ": 11.0,
"LVDutyID": 12,
"Contract": "sample string 13"
}
]
text/html
Sample:
[{"CustomerID":1,"DebtorID":2,"ChannelCode":"sample string 3","ChannelTypeID":4,"RefNum":"sample string 5","Waybill":"sample string 6","WaybillDate":"2026-02-04T03:56:54","Invoice":"sample string 8","InvoiceDate":"2026-02-04T03:56:54","DutyDate":"2026-02-04T03:56:54","PaymentDate":"2026-02-04T03:56:54+03:00","Summ":11.0,"LVDutyID":12,"Contract":"sample string 13"},{"CustomerID":1,"DebtorID":2,"ChannelCode":"sample string 3","ChannelTypeID":4,"RefNum":"sample string 5","Waybill":"sample string 6","WaybillDate":"2026-02-04T03:56:54","Invoice":"sample string 8","InvoiceDate":"2026-02-04T03:56:54","DutyDate":"2026-02-04T03:56:54","PaymentDate":"2026-02-04T03:56:54+03:00","Summ":11.0,"LVDutyID":12,"Contract":"sample string 13"}]
application/xml, text/xml
Sample:
<ArrayOfUploadToHeapRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Metib.Modules.Factoring.Api.Models.Requests">
<UploadToHeapRequestDTO>
<ChannelCode>sample string 3</ChannelCode>
<ChannelTypeID>4</ChannelTypeID>
<Contract>sample string 13</Contract>
<CustomerID>1</CustomerID>
<DebtorID>2</DebtorID>
<DutyDate>2026-02-04T03:56:54.0742773+03:00</DutyDate>
<Invoice>sample string 8</Invoice>
<InvoiceDate>2026-02-04T03:56:54.0742773+03:00</InvoiceDate>
<LVDutyID>12</LVDutyID>
<PaymentDate>2026-02-04T03:56:54.0742773+03:00</PaymentDate>
<RefNum>sample string 5</RefNum>
<Summ>11</Summ>
<Waybill>sample string 6</Waybill>
<WaybillDate>2026-02-04T03:56:54.0742773+03:00</WaybillDate>
</UploadToHeapRequestDTO>
<UploadToHeapRequestDTO>
<ChannelCode>sample string 3</ChannelCode>
<ChannelTypeID>4</ChannelTypeID>
<Contract>sample string 13</Contract>
<CustomerID>1</CustomerID>
<DebtorID>2</DebtorID>
<DutyDate>2026-02-04T03:56:54.0742773+03:00</DutyDate>
<Invoice>sample string 8</Invoice>
<InvoiceDate>2026-02-04T03:56:54.0742773+03:00</InvoiceDate>
<LVDutyID>12</LVDutyID>
<PaymentDate>2026-02-04T03:56:54.0742773+03:00</PaymentDate>
<RefNum>sample string 5</RefNum>
<Summ>11</Summ>
<Waybill>sample string 6</Waybill>
<WaybillDate>2026-02-04T03:56:54.0742773+03:00</WaybillDate>
</UploadToHeapRequestDTO>
</ArrayOfUploadToHeapRequestDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of HeapDutyImportResultDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| Error | boolean |
None. |
|
| Comment | string |
None. |
|
| Ref | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ID": 1,
"Error": true,
"Comment": "sample string 3",
"Ref": "sample string 4"
},
{
"ID": 1,
"Error": true,
"Comment": "sample string 3",
"Ref": "sample string 4"
}
]
text/html
Sample:
[{"ID":1,"Error":true,"Comment":"sample string 3","Ref":"sample string 4"},{"ID":1,"Error":true,"Comment":"sample string 3","Ref":"sample string 4"}]
application/xml, text/xml
Sample:
<ArrayOfHeapDutyImportResultDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Metib.Modules.Factoring.Api.DTO">
<HeapDutyImportResultDTO>
<Comment>sample string 3</Comment>
<Error>true</Error>
<ID>1</ID>
<Ref>sample string 4</Ref>
</HeapDutyImportResultDTO>
<HeapDutyImportResultDTO>
<Comment>sample string 3</Comment>
<Error>true</Error>
<ID>1</ID>
<Ref>sample string 4</Ref>
</HeapDutyImportResultDTO>
</ArrayOfHeapDutyImportResultDTO>