Skip to main content

Сервис расчёта скидки

POST 

/v5/contracts/discount-calculation-service

Сервис расчёта скидки

Request

Header Parameters

    Accept-Language stringrequired

    Язык используемый для ответов

    Example: ru-RU
    X-LP-Client-Identifier stringrequired

    Идентификатор клиента

    Example: 11a7c525-b338-4c27-9f40-ed2f4376f727
    X-LP-Client-Type stringrequired

    Possible values: [Unknown, App, WebApp, Service]

    Тип клиента

    Example: App
    X-LP-Client-Name string

    Имя клиента

    Example: Swagger
    X-LP-Client-OS-Name string

    ОС клиента

    Example: SwaggerDoc
    X-LP-Client-OS-Version string

    Версия ОС клиента

    Example: 1.0
    X-LP-Client-Screen-Resolution string

    Разрешение экрана ОС клиента

    Example: 1280x0900
    X-LP-Client-Model string

    Модель оборудования клиента

    Example: Chrome 75
    X-LP-Organization-Alias string

    Организация по умолчанию

    X-LP-Client-Extensions csv

    Поддерживаемые клиентом расширения моделей

Body

Продажа со скидками

    number stringnullable

    Possible values: <= 36 characters

    Номер

    total_sum

    object

    required

    value int64
    currency CurrencyCodes (string)required

    Possible values: [RUB, GBP, USD, EUR, Unknown]

    type_of stringnullable

    positions

    object[]

    nullable

    Позиции

  • Array [

  • good_type GoodTypes (string)required

    Possible values: [Product, ExciseProduct, Work, Service, GamblingBet, GamblingWinning, LotteryBet, LotteryWinning, IntellectualProperty, Payment, AgentFee, Composite, Other, PropertyRights, NonRealizationIncome, InsuranceFee, TradeFee, ResortFee]

    name stringrequired

    Possible values: <= 128 characters

    uom

    object

    required

    guid uuid
    type_of stringnullable
    tax ValueAddedTaxRates (string)required

    Possible values: [Tax20, Tax10, Tax0, TaxFree]

    sale_price

    object

    required

    value int64
    currency CurrencyCodes (string)required

    Possible values: [RUB, GBP, USD, EUR, Unknown]

    type_of stringnullable
    quantity doublerequired
    made_in CountryCodes (string)

    Possible values: [AFG, ALB, ATA, DZA, ASM, AND, AGO, ATG, AZE, ARG, AUS, AUT, BHS, BHR, BGD, ARM, BRB, BEL, BMU, BTN, BOL, BIH, BWA, BVT, BRA, BLZ, IOT, SLB, VGB, BRN, BGR, MMR, BDI, BLR, KHM, CMR, CAN, CPV, CYM, CAF, LKA, TCD, CHL, CHN, TWN, CXR, CCK, COL, COM, MYT, COG, COD, COK, CRI, HRV, CUB, CYP, CZE, BEN, DNK, DMA, DOM, ECU, SLV, GNQ, ETH, ERI, EST, FRO, FLK, SGS, FJI, FIN, ALA, FRA, GUF, PYF, ATF, DJI, GAB, GEO, GMB, PSE, DEU, GHA, GIB, KIR, GRC, GRL, GRD, GLP, GUM, GTM, GIN, GUY, HTI, HMD, VAT, HND, HKG, HUN, ISL, IND, IDN, IRN, IRQ, IRL, ISR, ITA, CIV, JAM, JPN, KAZ, JOR, KEN, PRK, KOR, KWT, KGZ, LAO, LBN, LSO, LVA, LBR, LBY, LIE, LTU, LUX, MAC, MDG, MWI, MYS, MDV, MLI, MLT, MTQ, MRT, MUS, MEX, MCO, MNG, MDA, MNE, MSR, MAR, MOZ, OMN, NAM, NRU, NPL, NLD, CUW, ABW, SXM, BES, NCL, VUT, NZL, NIC, NER, NGA, NIU, NFK, NOR, MNP, UMI, FSM, MHL, PLW, PAK, PAN, PNG, PRY, PER, PHL, PCN, POL, PRT, GNB, TLS, PRI, QAT, REU, ROU, RUS, RWA, BLM, SHN, KNA, AIA, LCA, MAF, SPM, VCT, SMR, STP, SAU, SEN, SRB, SYC, SLE, SGP, SVK, VNM, SVN, SOM, ZAF, ZWE, ESP, SSD, SDN, ESH, SUR, SJM, SWZ, SWE, CHE, SYR, TJK, THA, TGO, TKL, TON, TTO, ARE, TUN, TUR, TKM, TCA, TUV, UGA, UKR, MKD, EGY, GBR, GGY, JEY, IMN, TZA, USA, VIR, BFA, URY, UZB, VEN, WLF, WSM, YEM, ZMB]

    total_sum

    object

    required

    value int64
    currency CurrencyCodes (string)required

    Possible values: [RUB, GBP, USD, EUR, Unknown]

    type_of stringnullable

    additional_attributes

    object

    as_agent_type_of FEAgentTypes (string)

    Possible values: [BankPayingAgent, BankPayingSubagent, PayingAgent, PayingSubagent, Attorney, Consignee, Agent]

    transfer_operator_name stringnullable

    Possible values: <= 64 characters

    transfer_operator_phones string[]nullable
    transfer_operator_address stringnullable

    Possible values: <= 256 characters

    transfer_operator_inn stringnullable

    Possible values: <= 12 characters

    paying_agent_operation stringnullable

    Possible values: <= 24 characters

    paying_agent_phones string[]nullable
    payment_operator_phones string[]nullable
    supplier_name stringnullable

    Possible values: <= 256 characters

    supplier_inn stringnullable

    Possible values: <= 12 characters

    supplier_phones string[]nullable
    code bytenullable
    mark stringnullable

    Possible values: <= 1024 characters

    declaration_number stringnullable

    Possible values: <= 32 characters

    excise_fee int32nullable
    meta stringnullable

    meta_data

    object

    nullable

    property name* stringnullable

    permissions

    object[]

    nullable

  • Array [

  • role

    object

    required

    guid uuid
    type_of stringnullable
    can_edit_name boolean
    can_edit_good_type boolean
    can_edit_uom boolean
    can_edit_tax boolean
    can_edit_quantity boolean
    can_edit_sale_price boolean
    can_delete boolean
    allowed_max_quantity doublenullable
    allowed_min_quantity doublenullable

    allowed_max_sale_price

    object

    value int64
    currency CurrencyCodes (string)required

    Possible values: [RUB, GBP, USD, EUR, Unknown]

    type_of stringnullable

    allowed_min_sale_price

    object

    value int64
    currency CurrencyCodes (string)required

    Possible values: [RUB, GBP, USD, EUR, Unknown]

    type_of stringnullable
    type_of stringnullable
  • ]

  • type_of stringnullable
  • ]

  • additional_attributes

    object

    settlement_location stringnullable

    Possible values: <= 256 characters

    customer_name stringnullable

    Possible values: <= 256 characters

    customer_inn stringnullable

    Possible values: <= 12 characters

    customer_contacts stringnullable

    Possible values: <= 64 characters

    printable_header string[]nullable
    printable_footer string[]nullable

    extensions

    object

    created_at date-time
    updated_at date-time
    deleted_at date-timenullable
    meta stringnullable

    Possible values: <= 128 characters

    meta_data

    object

    nullable

    property name* string
    guid uuid
    type_of stringnullable

Responses

Created

Schema

    number stringnullable

    Possible values: <= 36 characters

    Номер

    total_sum

    object

    required

    value int64
    currency CurrencyCodes (string)required

    Possible values: [RUB, GBP, USD, EUR, Unknown]

    type_of stringnullable

    positions

    object[]

    nullable

    Позиции

  • Array [

  • good_type GoodTypes (string)required

    Possible values: [Product, ExciseProduct, Work, Service, GamblingBet, GamblingWinning, LotteryBet, LotteryWinning, IntellectualProperty, Payment, AgentFee, Composite, Other, PropertyRights, NonRealizationIncome, InsuranceFee, TradeFee, ResortFee]

    name stringrequired

    Possible values: <= 128 characters

    uom

    object

    required

    guid uuid
    type_of stringnullable
    tax ValueAddedTaxRates (string)required

    Possible values: [Tax20, Tax10, Tax0, TaxFree]

    sale_price

    object

    required

    value int64
    currency CurrencyCodes (string)required

    Possible values: [RUB, GBP, USD, EUR, Unknown]

    type_of stringnullable
    quantity doublerequired
    made_in CountryCodes (string)

    Possible values: [AFG, ALB, ATA, DZA, ASM, AND, AGO, ATG, AZE, ARG, AUS, AUT, BHS, BHR, BGD, ARM, BRB, BEL, BMU, BTN, BOL, BIH, BWA, BVT, BRA, BLZ, IOT, SLB, VGB, BRN, BGR, MMR, BDI, BLR, KHM, CMR, CAN, CPV, CYM, CAF, LKA, TCD, CHL, CHN, TWN, CXR, CCK, COL, COM, MYT, COG, COD, COK, CRI, HRV, CUB, CYP, CZE, BEN, DNK, DMA, DOM, ECU, SLV, GNQ, ETH, ERI, EST, FRO, FLK, SGS, FJI, FIN, ALA, FRA, GUF, PYF, ATF, DJI, GAB, GEO, GMB, PSE, DEU, GHA, GIB, KIR, GRC, GRL, GRD, GLP, GUM, GTM, GIN, GUY, HTI, HMD, VAT, HND, HKG, HUN, ISL, IND, IDN, IRN, IRQ, IRL, ISR, ITA, CIV, JAM, JPN, KAZ, JOR, KEN, PRK, KOR, KWT, KGZ, LAO, LBN, LSO, LVA, LBR, LBY, LIE, LTU, LUX, MAC, MDG, MWI, MYS, MDV, MLI, MLT, MTQ, MRT, MUS, MEX, MCO, MNG, MDA, MNE, MSR, MAR, MOZ, OMN, NAM, NRU, NPL, NLD, CUW, ABW, SXM, BES, NCL, VUT, NZL, NIC, NER, NGA, NIU, NFK, NOR, MNP, UMI, FSM, MHL, PLW, PAK, PAN, PNG, PRY, PER, PHL, PCN, POL, PRT, GNB, TLS, PRI, QAT, REU, ROU, RUS, RWA, BLM, SHN, KNA, AIA, LCA, MAF, SPM, VCT, SMR, STP, SAU, SEN, SRB, SYC, SLE, SGP, SVK, VNM, SVN, SOM, ZAF, ZWE, ESP, SSD, SDN, ESH, SUR, SJM, SWZ, SWE, CHE, SYR, TJK, THA, TGO, TKL, TON, TTO, ARE, TUN, TUR, TKM, TCA, TUV, UGA, UKR, MKD, EGY, GBR, GGY, JEY, IMN, TZA, USA, VIR, BFA, URY, UZB, VEN, WLF, WSM, YEM, ZMB]

    total_sum

    object

    required

    value int64
    currency CurrencyCodes (string)required

    Possible values: [RUB, GBP, USD, EUR, Unknown]

    type_of stringnullable

    additional_attributes

    object

    as_agent_type_of FEAgentTypes (string)

    Possible values: [BankPayingAgent, BankPayingSubagent, PayingAgent, PayingSubagent, Attorney, Consignee, Agent]

    transfer_operator_name stringnullable

    Possible values: <= 64 characters

    transfer_operator_phones string[]nullable
    transfer_operator_address stringnullable

    Possible values: <= 256 characters

    transfer_operator_inn stringnullable

    Possible values: <= 12 characters

    paying_agent_operation stringnullable

    Possible values: <= 24 characters

    paying_agent_phones string[]nullable
    payment_operator_phones string[]nullable
    supplier_name stringnullable

    Possible values: <= 256 characters

    supplier_inn stringnullable

    Possible values: <= 12 characters

    supplier_phones string[]nullable
    code bytenullable
    mark stringnullable

    Possible values: <= 1024 characters

    declaration_number stringnullable

    Possible values: <= 32 characters

    excise_fee int32nullable
    meta stringnullable

    meta_data

    object

    nullable

    property name* stringnullable

    permissions

    object[]

    nullable

  • Array [

  • role

    object

    required

    guid uuid
    type_of stringnullable
    can_edit_name boolean
    can_edit_good_type boolean
    can_edit_uom boolean
    can_edit_tax boolean
    can_edit_quantity boolean
    can_edit_sale_price boolean
    can_delete boolean
    allowed_max_quantity doublenullable
    allowed_min_quantity doublenullable

    allowed_max_sale_price

    object

    value int64
    currency CurrencyCodes (string)required

    Possible values: [RUB, GBP, USD, EUR, Unknown]

    type_of stringnullable

    allowed_min_sale_price

    object

    value int64
    currency CurrencyCodes (string)required

    Possible values: [RUB, GBP, USD, EUR, Unknown]

    type_of stringnullable
    type_of stringnullable
  • ]

  • type_of stringnullable
  • ]

  • additional_attributes

    object

    settlement_location stringnullable

    Possible values: <= 256 characters

    customer_name stringnullable

    Possible values: <= 256 characters

    customer_inn stringnullable

    Possible values: <= 12 characters

    customer_contacts stringnullable

    Possible values: <= 64 characters

    printable_header string[]nullable
    printable_footer string[]nullable

    extensions

    object

    created_at date-time
    updated_at date-time
    deleted_at date-timenullable
    meta stringnullable

    Possible values: <= 128 characters

    meta_data

    object

    nullable

    property name* string
    guid uuid
    type_of stringnullable
Loading...