POST v2.0/dzo/deal/create

Добавить сделку ДЗО.

Request Information

URI Parameters

None.

Body Parameters

Данные для создания сделки.

Korus.Eds.Api.Internal.Models.DzoDealDraft
NameDescriptionTypeAdditional information
DealUid

string

None.

ProductKindCode

string

None.

DealType

Korus.Eds.Core.DzoDealType

None.

Number

string

None.

StartDate

date

None.

EndDate

date

None.

Inn

string

None.

Kpp

string

None.

Amount

decimal number

None.

File

Korus.Eds.Api.Internal.Models.FileContent

None.

ExternalClientUid

string

None.

Services

Dictionary of string [key] and decimal number [value]

None.

Request Formats

application/json, text/json

Sample:
{
  "dealUid": "sample string 1",
  "productKindCode": "sample string 2",
  "dealType": 1,
  "number": "sample string 3",
  "startDate": "2025-04-29T17:12:56.4022018+03:00",
  "endDate": "2025-04-29T17:12:56.4022018+03:00",
  "inn": "sample string 4",
  "kpp": "sample string 5",
  "amount": 1.0,
  "file": {
    "filename": "sample string 1",
    "mimeType": "sample string 2",
    "content": "QEA="
  },
  "externalClientUid": "sample string 6",
  "services": {
    "sample string 1": 1.0,
    "sample string 2": 1.0
  }
}

application/xml, text/xml

Sample:
<DzoDealDraft xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Korus.Eds.Api.Internal.Models">
  <Amount>1</Amount>
  <DealType>Bundle</DealType>
  <DealUid>sample string 1</DealUid>
  <EndDate>2025-04-29T17:12:56.4022018+03:00</EndDate>
  <ExternalClientUid>sample string 6</ExternalClientUid>
  <File>
    <Content>QEA=</Content>
    <Filename>sample string 1</Filename>
    <MimeType>sample string 2</MimeType>
  </File>
  <Inn>sample string 4</Inn>
  <Kpp>sample string 5</Kpp>
  <Number>sample string 3</Number>
  <ProductKindCode>sample string 2</ProductKindCode>
  <Services xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringNullableOfdecimalU6ho3Bhd>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>1</d2p1:Value>
    </d2p1:KeyValueOfstringNullableOfdecimalU6ho3Bhd>
    <d2p1:KeyValueOfstringNullableOfdecimalU6ho3Bhd>
      <d2p1:Key>sample string 2</d2p1:Key>
      <d2p1:Value>1</d2p1:Value>
    </d2p1:KeyValueOfstringNullableOfdecimalU6ho3Bhd>
  </Services>
  <StartDate>2025-04-29T17:12:56.4022018+03:00</StartDate>
</DzoDealDraft>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Идентификатор созданной сделки.

Korus.Eds.Api.Internal.Models.DzoDealCreateResult
NameDescriptionTypeAdditional information
State

Korus.Eds.Core.DzoDealCreationState

None.

Info

Korus.Eds.Api.Internal.Models.CreatedDzoDealInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "state": 0,
  "info": {
    "dealId": 1,
    "clientId": 2
  }
}

application/xml, text/xml

Sample:
<DzoDealCreateResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Korus.Eds.Api.Internal.Models">
  <Info>
    <ClientId>2</ClientId>
    <DealId>1</DealId>
  </Info>
  <State>Success</State>
</DzoDealCreateResult>