POST api/duty/import/heap

Request Information

URI Parameters

None.

Body Parameters

Collection of UploadToHeapRequestDTO
NameDescriptionTypeAdditional 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": "2025-07-26T21:12:32",
    "Invoice": "sample string 8",
    "InvoiceDate": "2025-07-26T21:12:32",
    "DutyDate": "2025-07-26T21:12:32",
    "PaymentDate": "2025-07-26T21:12:32+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": "2025-07-26T21:12:32",
    "Invoice": "sample string 8",
    "InvoiceDate": "2025-07-26T21:12:32",
    "DutyDate": "2025-07-26T21:12:32",
    "PaymentDate": "2025-07-26T21:12:32+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":"2025-07-26T21:12:32","Invoice":"sample string 8","InvoiceDate":"2025-07-26T21:12:32","DutyDate":"2025-07-26T21:12:32","PaymentDate":"2025-07-26T21:12:32+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":"2025-07-26T21:12:32","Invoice":"sample string 8","InvoiceDate":"2025-07-26T21:12:32","DutyDate":"2025-07-26T21:12:32","PaymentDate":"2025-07-26T21:12:32+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>2025-07-26T21:12:32.4121899+03:00</DutyDate>
    <Invoice>sample string 8</Invoice>
    <InvoiceDate>2025-07-26T21:12:32.4121899+03:00</InvoiceDate>
    <LVDutyID>12</LVDutyID>
    <PaymentDate>2025-07-26T21:12:32.4121899+03:00</PaymentDate>
    <RefNum>sample string 5</RefNum>
    <Summ>11</Summ>
    <Waybill>sample string 6</Waybill>
    <WaybillDate>2025-07-26T21:12:32.4121899+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>2025-07-26T21:12:32.4121899+03:00</DutyDate>
    <Invoice>sample string 8</Invoice>
    <InvoiceDate>2025-07-26T21:12:32.4121899+03:00</InvoiceDate>
    <LVDutyID>12</LVDutyID>
    <PaymentDate>2025-07-26T21:12:32.4121899+03:00</PaymentDate>
    <RefNum>sample string 5</RefNum>
    <Summ>11</Summ>
    <Waybill>sample string 6</Waybill>
    <WaybillDate>2025-07-26T21:12:32.4121899+03:00</WaybillDate>
  </UploadToHeapRequestDTO>
</ArrayOfUploadToHeapRequestDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of HeapDutyImportResultDTO
NameDescriptionTypeAdditional 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>