1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00
Files
OpenIntegrations/docs/en/md/CDEK/Orders-managment/Get-order-description.md
T
Vitaly the Alpaca (bot) 1d40a3cc6e Main build (Jenkins)
2024-10-11 23:33:40 +03:00

5.4 KiB

sidebar_position
sidebar_position
8

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 Description
Clear --empty Boolean True > structure with empty valuse, False > field descriptions at values
RequiredOnly --required Boolean True > only required fields will be in the set
OnlineStore --ostore Boolean 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 :::

    Result = OPI_CDEK.GetOrderDescription();
    
  oint cdek GetOrderDescription --empty %empty% --required %required% --ostore %ostore%

{
 "tariff_code": "<Tariff code)>",
 "recipient": {
  "company": "<Company name>",
  "name": "<Full name of contact person>",
  "passport_series": "<Passport series>",
  "passport_number": "<Passport number>",
  "passport_date_of_issue": "<Date of issue of passport>",
  "passport_organization": "<Passport issuing authority>",
  "tin": "<TIN>",
  "passport_date_of_birth": "<Birth date>",
  "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": "<Package Dimensions. Width (cm)>",
   "height": "<Package Dimensions. Height (cm)>",
   "comment": "<Package withommentary>",
   "items": [
    {
     "name": "<Product name>",
     "ware_key": "<Product ID/article>",
     "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": "<Developer key (for module developers)>",
 "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 series>",
  "passport_number": "<Passport number>",
  "passport_date_of_issue": "<Date of issue of passport>",
  "passport_organization": "<Passport issuing authority>",
  "tin": "<TIN>",
  "passport_date_of_birth": "<Birth date>",
  "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": "<Code withтраны in format ISO_3166-1_alpha-2>",
  "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": "<Code withтраны in format ISO_3166-1_alpha-2>",
  "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": "<Customer refund>",
 "accompanying_number": "<Number of the accompanying consignment note>",
 "widget_token": "<Token received from widget.cdek.ru>"
}