---
sidebar_position: 16
description: Get order description and other functions to work with CDEK in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, CDEK]
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Get order description
 Gets the layout of order for the CreateOrder function



`Function GetOrderDescription(Val Clear = False, Val RequiredOnly = False, Val OnlineStore = False) Export`

  | Parameter | CLI option | Type | Required | Description |
  |-|-|-|-|-|
  | Clear | --empty | Boolean | &#x2716; | True > structure with empty valuse, False > field descriptions at values |
  | RequiredOnly | --required | Boolean | &#x2716; | True > only required fields will be in the set |
  | OnlineStore | --ostore | Boolean | &#x2716; | Flag of including fields in the layout exclusively for online store orders |

  
  Returns:  Structure Of KeyAndValue - Fields structure

:::tip
Required fields may depend on the type of order or nesting. Be sure to read the CDEK documentation

Field descriptions in the documentation: [Order registration](https://api-docs.cdek.ru/33828802.html)
:::
<br/>


```bsl title="1C:Enterprise/OneScript code example"
    Result = OPI_CDEK.GetOrderDescription();
```
 

 <Tabs>
  
    <TabItem value="bash" label="Bash" default>
        ```bash
            oint cdek GetOrderDescription \
             --empty true
        ```
    </TabItem>
  
    <TabItem value="bat" label="CMD/Bat" default>
        ```batch
            oint cdek GetOrderDescription ^
             --empty true
        ```
    </TabItem>
</Tabs>


```json title="Result"
{
 "tariff_code": "<Tariff code)>",
 "recipient": {
  "company": "<Company name>",
  "name": "<Full name of contact person>",
  "passport_series": "***",
  "passport_number": "***",
  "passport_date_of_issue": "***",
  "passport_organization": "***",
  "tin": "<TIN>",
  "passport_date_of_birth": "***",
  "email": "<Email as RFC 2822>",
  "contragent_type": "<Sender type: LEGAL_ENTITY, INDIVIDUAL >",
  "phones": [
   {
    "number": "<Phone number>",
    "additional": "<Additional information (extension number)>"
   }
  ]
 },
 "packages": [
  {
   "number": "<Package number>",
   "weight": "<Total weight (grams)>",
   "length": "<Package Dimensions. Length (cm)>",
   "width": "***",
   "height": "<Package Dimensions. Height (cm)>",
   "comment": "<Package withommentary>",
   "items": [
    {
     "name": "<Product name>",
     "ware_key": "***",
     "marking": "<Product marking>",
     "payment": {
      "value": "<Amount of cash on delivery, including VAT>",
      "vat_sum": "<VAT amount>",
      "vat_rate": "<VAT rate (value - 0, 10, 12, 20, null - no VAT)>"
     },
     "cost": "<Declared product price>",
     "weight": "<Weight (per unit, grams)>",
     "weight_gross": "<Gross weight>",
     "amount": "<Number of units (pcs)>",
     "name_i18n": "<Foreign language name>",
     "brand": "<Brand in a foreign language>",
     "country_code": "<Country code of the product manufacturer as ISO_3166-1_alpha-2>",
     "material": "<Material code>",
     "wifi_gsm": "<Contains wifi or gsm>",
     "url": "<Link to the website of the online store with the description of the product>"
    }
   ]
  }
 ],
 "additional_order_types": "<Additional order type>",
 "comment": "<Order comment>",
 "developer_key": "***",
 "shipment_point": "<Code of CDEK POZ for self carriage by the customer>",
 "delivery_point": "<Code of CDEK office to which the package will be delivered>",
 "date_invoice": "<Invoice date>",
 "shipper_name": "<Shipper>",
 "shipper_address": "<Shippers address>",
 "sender": {
  "company": "<Company name>",
  "name": "<Full name of contact person>",
  "email": "<Email for alerts as RFC 2822>",
  "passport_series": "***",
  "passport_number": "***",
  "passport_date_of_issue": "***",
  "passport_organization": "***",
  "tin": "<TIN>",
  "passport_date_of_birth": "***",
  "contragent_type": "<Sender type: LEGAL_ENTITY, INDIVIDUAL>",
  "phones": [
   {
    "number": "<Phone number>",
    "additional": "<Additional information (extension number)>"
   }
  ]
 },
 "from_location": {
  "code": "<CDEC locality code>",
  "fias_guid": "<Unique FIAS identifier>",
  "postal_code": "<Postal code>",
  "longitude": "<Longitude>",
  "latitude": "<Latitude>",
  "country_code": "<Country code in ISO_3166-1_alpha-2 format>",
  "region": "<Region name, specifying parameter for the city field>",
  "region_code": "<CDEK region code, specifying parameter for the city field>",
  "sub_region": "<Name of the region's district, specifying parameter for the region field>",
  "city": "<City name, specifying parameter for postal_code>",
  "kladr_code": "<CLADR code>",
  "address": "<Address string >"
 },
 "to_location": {
  "code": "<CDEC locality code>",
  "fias_guid": "<Unique FIAS identifier>",
  "postal_code": "<Postal code>",
  "longitude": "<Longitude>",
  "latitude": "<Latitude>",
  "country_code": "<Country code in ISO_3166-1_alpha-2 format>",
  "region": "<Region name, specifying parameter for the city field>",
  "region_code": "<CDEK region code, specifying parameter for the city field>",
  "sub_region": "<Name of the region's district, specifying parameter for the region field>",
  "city": "<City name, specifying parameter for postal_code>",
  "kladr_code": "<CLADR code>",
  "address": "<Address string >"
 },
 "services": {
  "code": "<Type of additional service>",
  "parameter": "<Additional service parameter>"
 },
 "print": "<Need to generate a document>",
 "is_client_return": "***",
 "accompanying_number": "<Number of the accompanying consignment note>",
 "widget_token": "***"
}
```
