POST api/v2/Counterparty/Import

Request Information

URI Parameters

None.

Body Parameters

Collection of Counterparty
NameDescriptionTypeAdditional information
code

string

Required

String length: inclusive between 0 and 155

name

string

Required

String length: inclusive between 0 and 255

legalAddress

string

String length: inclusive between 0 and 255

actualAddress

string

String length: inclusive between 0 and 255

account

string

None.

corrAccount

string

None.

inn

string

None.

kpp

string

None.

ogrn

string

None.

okpo

string

None.

okved

string

None.

bic

string

None.

dsc

string

String length: inclusive between 0 and 255

Request Formats

application/json, text/json

Sample:
[
  {
    "code": "sample string 1",
    "name": "sample string 2",
    "legalAddress": "sample string 3",
    "actualAddress": "sample string 4",
    "account": "sample string 5",
    "corrAccount": "sample string 6",
    "inn": "sample string 7",
    "kpp": "sample string 8",
    "ogrn": "sample string 9",
    "okpo": "sample string 10",
    "okved": "sample string 11",
    "bic": "sample string 12",
    "dsc": "sample string 13"
  },
  {
    "code": "sample string 1",
    "name": "sample string 2",
    "legalAddress": "sample string 3",
    "actualAddress": "sample string 4",
    "account": "sample string 5",
    "corrAccount": "sample string 6",
    "inn": "sample string 7",
    "kpp": "sample string 8",
    "ogrn": "sample string 9",
    "okpo": "sample string 10",
    "okved": "sample string 11",
    "bic": "sample string 12",
    "dsc": "sample string 13"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCounterparty xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FreshLogicAPI.Models">
  <Counterparty>
    <account>sample string 5</account>
    <actualAddress>sample string 4</actualAddress>
    <bic>sample string 12</bic>
    <code>sample string 1</code>
    <corrAccount>sample string 6</corrAccount>
    <dsc>sample string 13</dsc>
    <inn>sample string 7</inn>
    <kpp>sample string 8</kpp>
    <legalAddress>sample string 3</legalAddress>
    <name>sample string 2</name>
    <ogrn>sample string 9</ogrn>
    <okpo>sample string 10</okpo>
    <okved>sample string 11</okved>
  </Counterparty>
  <Counterparty>
    <account>sample string 5</account>
    <actualAddress>sample string 4</actualAddress>
    <bic>sample string 12</bic>
    <code>sample string 1</code>
    <corrAccount>sample string 6</corrAccount>
    <dsc>sample string 13</dsc>
    <inn>sample string 7</inn>
    <kpp>sample string 8</kpp>
    <legalAddress>sample string 3</legalAddress>
    <name>sample string 2</name>
    <ogrn>sample string 9</ogrn>
    <okpo>sample string 10</okpo>
    <okved>sample string 11</okved>
  </Counterparty>
</ArrayOfCounterparty>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.